Skip to content

Commit

Permalink
No need to warmup with such a large stop_before_frame value
Browse files Browse the repository at this point in the history
In real usage, the number of frames per partition is a lot smaller...
  • Loading branch information
sk1p committed Dec 3, 2024
1 parent 9d745e1 commit 75a0fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libertem_live/detectors/merlin/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def _warmup(self):
)
slices, ranges, scheme_indices = fileset.get_read_ranges(
start_at_frame=0,
stop_before_frame=int(np.prod(self._ds.shape.nav)),
stop_before_frame=min(10, int(np.prod(self._ds.shape.nav))),
dtype=np.float32, # FIXME: don't really care...
tiling_scheme=tiling_scheme,
roi=None,
Expand Down

0 comments on commit 75a0fe7

Please sign in to comment.