Skip to content

Commit

Permalink
Add default exposure time for HDF flushing maths
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Bricknell committed Jan 6, 2017
1 parent c18c17d commit 8e6b891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions malcolm/parts/ADCore/hdfwriterpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def configure(self, task, completed_steps, steps_to_do, part_info, params):
# write between each flush. Thus we need to know the exposure time. Get
# it from the last FDM. (There's probably only one, and we don't care
# about other cases.)
# Choose a default exposure time in case there is no FDM.
exposure_time = 0.1 # seconds
for mutator in params.generator.mutators:
if isinstance(mutator, FixedDurationMutator):
exposure_time = mutator.duration
Expand Down

0 comments on commit 8e6b891

Please sign in to comment.