Skip to content

Commit

Permalink
Fix total time logic
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 26, 2024
1 parent 6435fef commit ecc3a9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/lvmscp/actor/commands/etr.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ async def get_etr(command: CommandType, *_):

if etr is None or e_data is None:
command.warning("ETR not available. The controllers may be idle.")
total_time = None
else:
total_time = e_data.exposure_time + EXPECTED_READOUT_TIME

assert e_data

command.finish(etr=[etr, e_data.exposure_time + EXPECTED_READOUT_TIME])
command.finish(etr=[etr, total_time])

0 comments on commit ecc3a9d

Please sign in to comment.