Skip to content

Commit

Permalink
Improve comment and correct comment length
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesu committed Sep 26, 2024
1 parent 6722832 commit d4f501c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python/lsst/ts/observatory/control/mock/mtcs_async_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,18 +493,19 @@ async def mtdome_cmd_move_az(self, *args: typing.Any, **kwargs: typing.Any) -> N
asyncio.create_task(self._mtdome_move_az())

async def _mtdome_move_az(self, *args: typing.Any, **kwargs: typing.Any) -> None:
# Mock implementation of cmd_park
# Mock implementation of dome park , unpark and slew_dome_to
self.log.info("Dome moveAz command executed")
await asyncio.sleep(self.heartbeat_time * 2)
# This wait time and Dome MotionSate MOVING is to mock the test_unpark_dome
# This wait time and Dome MotionSate MOVING is to mock the
# test_unpark_dome
self._mtdome_evt_az_motion = types.SimpleNamespace(
state=MTDome.MotionState.MOVING, inPosition=False
)

# The following delay is timed so that the MOVING state above remains
# long enough for the test_unpark_dome to pick it up and complete
# successfully. Same wise the test_slew_dome_to expects at some point
# an ENABLED and inPosition.
# The following delay is timed so that the MOVING state above
# remains long enough for the test_unpark_dome to pick it
# up and complete successfully. Same wise the test_slew_dome_to
# expects at some point an ENABLED and inPosition.
await asyncio.sleep(self.heartbeat_time * 3)
self.log.info("Slew dome to azimuth command executed")
self._mtdome_evt_az_motion = types.SimpleNamespace(
Expand Down

0 comments on commit d4f501c

Please sign in to comment.