From cbb4c86a69fe06f590891da5b0d01c73b6c574a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carolina=20Villal=C3=B3n?= Date: Tue, 5 Nov 2024 19:15:19 -0300 Subject: [PATCH] Address PR comments --- python/lsst/ts/standardscripts/maintel/mtdome/home_dome.py | 5 +++-- tests/test_maintel_mtdome_home_dome.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python/lsst/ts/standardscripts/maintel/mtdome/home_dome.py b/python/lsst/ts/standardscripts/maintel/mtdome/home_dome.py index ca029877..af661a59 100644 --- a/python/lsst/ts/standardscripts/maintel/mtdome/home_dome.py +++ b/python/lsst/ts/standardscripts/maintel/mtdome/home_dome.py @@ -85,7 +85,9 @@ async def configure(self, config): if self.mtcs is None: self.mtcs = MTCS( - domain=self.domain, intended_usage=MTCSUsages.Slew, log=self.log + domain=self.domain, + intended_usage=MTCSUsages.Slew | MTCSUsages.StateTransition, + log=self.log, ) await self.mtcs.start_task @@ -104,7 +106,6 @@ def set_metadata(self, metadata): metadata.duration = self.home_dome_duration async def run(self): - await self.mtcs.enable() await self.mtcs.assert_all_enabled() await self.checkpoint("Homing dome") await self.mtcs.home_dome(physical_az=self.physical_az) diff --git a/tests/test_maintel_mtdome_home_dome.py b/tests/test_maintel_mtdome_home_dome.py index eecce13f..bfbc23a6 100644 --- a/tests/test_maintel_mtdome_home_dome.py +++ b/tests/test_maintel_mtdome_home_dome.py @@ -40,7 +40,6 @@ async def basic_make_script(self, index): async def make_dry_script(self): async with self.make_script(self): self.script.mtcs = unittest.mock.AsyncMock() - self.script.mtcs.enable = unittest.mock.AsyncMock() self.script.mtcs.assert_all_enabled = unittest.mock.AsyncMock() self.script.mtcs.home_dome = unittest.mock.AsyncMock() yield @@ -50,7 +49,6 @@ async def test_run(self): await self.configure_script(physical_az=300.0) await self.run_script() - self.script.mtcs.enable.assert_awaited_once() self.script.mtcs.assert_all_enabled.assert_awaited_once() self.script.mtcs.home_dome.assert_awaited_once() self.script.mtcs.home_dome.assert_called_with(physical_az=300.0)