From a1cd224be3a0b6fd1f38c32d92c885b3a3f6650a Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 21 Nov 2024 21:32:13 -0700 Subject: [PATCH] DELETE ME: Ignore rotator timing out. Rotator is not getting in position when tracking at high elevation. This is a work around for the pointing data. Delete this commit. --- .../lsst/ts/observatory/control/maintel/mtcs.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/python/lsst/ts/observatory/control/maintel/mtcs.py b/python/lsst/ts/observatory/control/maintel/mtcs.py index 98054079..606dc65b 100644 --- a/python/lsst/ts/observatory/control/maintel/mtcs.py +++ b/python/lsst/ts/observatory/control/maintel/mtcs.py @@ -569,12 +569,16 @@ async def wait_for_rotator_inposition( `str` Message indicating the component is in position. """ - return await self._handle_in_position( - self.rem.mtrotator.evt_inPosition, - timeout=timeout, - settle_time=self.tel_settle_time, - component_name="MTRotator", - ) + try: + return await self._handle_in_position( + self.rem.mtrotator.evt_inPosition, + timeout=timeout, + settle_time=self.tel_settle_time, + component_name="MTRotator", + ) + except asyncio.TimeoutError: + self.log.warning("MTRotator time-out getting into position. Continuing.") + return "MTRotator timedout getting in position." async def dome_az_in_position(self) -> str: """Wait for `_dome_az_in_position` event to be set and return a string