You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# two waits in a row means an indefinite wait, so we just skip this
# instruction.
last_instruction_was_wait=False
continue
else:
last_instruction_was_wait=False
foriinrange(row["reps"]):
forjinrange(1, -1, -1):
time.append(t)
states.append(j)
t+=row["half_period"] *clock_factor
The elif block always triggers on the next instruction after a wait, even if the current instruction is not also a wait (the proper indication of an indefinite wait).
Pretty sure the elif check should be elif row["reps"] == 0 and last_instruction_was_wait:
The text was updated successfully, but these errors were encountered:
dihm
changed the title
PrawnBlaster runviewer drops first instruction after a wait with timeout
PrawnBlaster runviewer parser drops first instruction after a wait with timeout
Dec 21, 2023
Issue is in this if-elif-else block
labscript-devices/labscript_devices/PrawnBlaster/runviewer_parsers.py
Lines 96 to 115 in e1f3d32
The
elif
block always triggers on the next instruction after a wait, even if the current instruction is not also a wait (the proper indication of an indefinite wait).Pretty sure the
elif
check should beelif row["reps"] == 0 and last_instruction_was_wait:
The text was updated successfully, but these errors were encountered: