Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danr committed Feb 29, 2024
1 parent fee45cf commit a56a793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellpainter/cellpainter/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def execute(cmd: Command, runtime: Runtime, metadata: Metadata):
execute(c, runtime, metadata)

case Idle():
secs = cmd.secs.unwrap()
secs = Symbolic.wrap(cmd.secs).unwrap()
entry = entry.merge(Metadata(est=round(secs, 3)))
with runtime.timeit(entry):
runtime.sleep(secs)
Expand All @@ -49,7 +49,7 @@ def execute(cmd: Command, runtime: Runtime, metadata: Metadata):
runtime.checkpoint(cmd.name, entry)

case WaitForCheckpoint():
plus_secs = cmd.plus_secs.unwrap()
plus_secs = Symbolic.wrap(cmd.plus_secs).unwrap()
t0 = runtime.wait_for_checkpoint(cmd.name)
desired_point_in_time = t0 + plus_secs
delay = desired_point_in_time - runtime.monotonic()
Expand Down

0 comments on commit a56a793

Please sign in to comment.