From 23547d8e133dab46241f3cbb1a4afc068a66ee9f Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Fri, 9 Sep 2022 14:24:08 +0200 Subject: [PATCH] changed initialise_hardware ccd function to reset_hardware command --- tangostationcontrol/tangostationcontrol/devices/ccd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/ccd.py b/tangostationcontrol/tangostationcontrol/devices/ccd.py index 24b30217d..e053d26c4 100644 --- a/tangostationcontrol/tangostationcontrol/devices/ccd.py +++ b/tangostationcontrol/tangostationcontrol/devices/ccd.py @@ -112,7 +112,10 @@ class CCD(opcua_device): # overloaded functions # -------- - def _initialise_hardware(self): + @command() + @DebugIt() + @only_in_states(DEFAULT_COMMAND_STATES) + def reset_hardware(self): """ Initialise the CCD hardware. """ # Cycle clock -- GitLab