From e1049f10b98f040d7ae0f56be32e7c62d3056522 Mon Sep 17 00:00:00 2001 From: Giuseppe Carboni <giuseppecarboni89@live.com> Date: Fri, 18 Dec 2020 15:48:23 +0000 Subject: [PATCH] Now the derotator does not cause the track command to fail, issue #328 --- .../PyDewarPositioner/src/DewarPositioner/positioner.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py b/Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py index ba4dd8ee1..95b0891d5 100644 --- a/Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py +++ b/Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py @@ -155,7 +155,9 @@ class Positioner(object): elif str(axis) == 'MNG_BEAMPARK': return (True, stime) elif self.conf.getAttribute('DynamicUpdatingAllowed') != 'true': - raise NotAllowedError('dynamic updating not allowed') + # FIXED configuration, should return ready even if the derotator + # will not actually move + return (True, stime) elif not self.siteInfo: raise NotAllowedError('no site information available') elif str(sector) not in sectors: @@ -232,7 +234,9 @@ class Positioner(object): elif str(axis) == 'MNG_BEAMPARK': pass # Do nothing elif self.conf.getAttribute('DynamicUpdatingAllowed') != 'true': - logger.logNotice('dynamic updating not allowed') + # This log is pretty much useless + # logger.logNotice('dynamic updating not allowed') + pass elif not self.siteInfo: raise NotAllowedError('no site information available') elif not self.source: -- GitLab