diff --git a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py index cc276428d962fa006d2ef0619790b65c1f2ba270..6f0f1de56b5bd0ade282aeede42fd719ce375b13 100644 --- a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py +++ b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py @@ -143,11 +143,12 @@ class lofar_device(Device, metaclass=DeviceMeta): @log_exceptions() def Initialise(self): """ - Command to ask for initialisation of this device. Can only be called in FAULT or OFF state. + Command to ask for initialisation of this device. Can only be called in OFF state. :return:None """ + self.set_state(DevState.INIT) self.set_status("Device is in the INIT state.") diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py index b41a750474e768497ff88001fadc0e84c52e513d..2b34767d6c74df2199017e1a884a0e2165af7fb0 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py @@ -17,6 +17,7 @@ class TestAntennaFieldDevice(AbstractTestBases.TestDeviceBase): super().setUp("STAT/AntennaField/1") self.proxy.put_property({"RECV_devices": ["STAT/RECV/1"], "HBAT_Power_to_RECV_mapping": [1, 1, 1, 0] + [-1] * 92}) + self.recv_proxy = self.setup_recv_proxy() def setup_recv_proxy(self): # setup RECV @@ -27,6 +28,5 @@ class TestAntennaFieldDevice(AbstractTestBases.TestDeviceBase): return recv_proxy def test_property_recv_devices_has_one_receiver(self): - self.proxy.warm_boot() result = self.proxy.get_property("RECV_devices") self.assertSequenceEqual(result["RECV_devices"], ["STAT/RECV/1"])