Skip to content

Commit

Permalink
Update move_rotator.py based on the comment in #146
Browse files Browse the repository at this point in the history
* Remove ``add_remotes`` argument from ``MoveRotator.__init__``
* Squeeze the checkpoints at the end to be a single line
  • Loading branch information
b1quint committed Oct 19, 2023
1 parent 81a0685 commit cf64040
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MoveRotator(BaseBlockScript):
"""

def __init__(self, index: int, add_remotes: bool = True) -> None:
def __init__(self, index: int) -> None:
super().__init__(index=index, descr="Move Rotator")

self.mtcs = None
Expand Down Expand Up @@ -136,7 +136,6 @@ async def run_block(self):
await self.mtcs.move_rotator(
angle=self.target_angle, wait_for_complete=self.wait_for_complete
)
if self.wait_for_complete:
await self.checkpoint(f"Rotator reached {self.target_angle} degrees.")
else:
await self.checkpoint("Stop script and keep rotator moving.")
await self.checkpoint(
f"Move rotator returned. Wait for complete: {self.wait_for_complete}."
)

0 comments on commit cf64040

Please sign in to comment.