Skip to content

Commit

Permalink
try to fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dperl-dls committed Jul 26, 2024
1 parent bf93939 commit 3386c7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/dodal/devices/i24/pmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ def __init__(
super().__init__(backend, timeout, name)

@AsyncStatus.wrap
async def set(self, prog_num: int, timeout: float):
prog_str = f"&2b{prog_num}r"
await self.signal.set(prog_str, wait=True)
async def set(self, value: int, wait=True, timeout=0.0):
prog_str = f"&2b{value}r"
assert (
isinstance(timeout, float) or timeout is None
), "ProgramRunner does not support calculating timeout itself"
await self.signal.set(prog_str, wait=wait)
await wait_for_value(self.status, ScanState.DONE, timeout)


Expand Down

0 comments on commit 3386c7e

Please sign in to comment.