diff --git a/doc/news/DM-41718.bugfix.rst b/doc/news/DM-41718.bugfix.rst new file mode 100644 index 000000000..e3ea7dd62 --- /dev/null +++ b/doc/news/DM-41718.bugfix.rst @@ -0,0 +1,2 @@ +Fixed a bug in `latiss_base_align.py` module when trying to flush the `ataos.evt_detailedState` event before resetting resetting the hexapod to its initial position. +That flush was not needed, redundant and it was causing an error. diff --git a/python/lsst/ts/externalscripts/auxtel/latiss_base_align.py b/python/lsst/ts/externalscripts/auxtel/latiss_base_align.py index 6cb380f2c..5795d0a97 100644 --- a/python/lsst/ts/externalscripts/auxtel/latiss_base_align.py +++ b/python/lsst/ts/externalscripts/auxtel/latiss_base_align.py @@ -908,8 +908,6 @@ async def cleanup(self): f"{self.max_iter}. Returning hexapod to its initial position." ) - self.rem.ataos.evt_detailedState.flush() - # Return hexapod to original position await self.atcs.offset_aos_lut( z=-self.offset_total_focus,