Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesu committed Sep 19, 2024
1 parent 7aeffab commit e5db06f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/lsst/ts/observatory/control/maintel/mtcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ async def wait_for_dome_state(
in time.
"""

# Helper function checks if dome's ready.
def dome_ready(az_motion: salobj.type_hints.BaseMsgType) -> bool:
return (
az_motion.state in expected_states and az_motion.inPosition
Expand Down Expand Up @@ -695,7 +694,7 @@ async def park_dome(self) -> None:
self.log.info("Dome is already in PARKED state.")
else:
self.rem.mtdome.evt_azMotion.flush()
# Move the dome to the park position

await self.rem.mtdome.cmd_park.start(timeout=self.long_timeout)

# Define expected and bad states for parking
Expand All @@ -719,20 +718,16 @@ async def park_dome(self) -> None:
async def unpark_dome(self) -> None:
"""Un-Park the dome by moving it a small delta amount."""

# Ensure the dome is ready for a move
await self.assert_all_enabled(
message="All components need to be enabled for un-parking the Dome."
)

# Try to get the current azMotion event and check if the dome is in
# the PARKED state
self.log.info("Checking if the dome is currently PARKED.")
az_motion = await self.rem.mtdome.evt_azMotion.aget(timeout=self.fast_timeout)

if az_motion.state == MTDome.MotionState.PARKED:
self.log.info("Dome is currently PARKED. Proceeding to un-park.")

# Get the current azimuth position
current_position = await self.rem.mtdome.tel_azimuth.aget(
timeout=self.fast_timeout
)
Expand Down

0 comments on commit e5db06f

Please sign in to comment.