Skip to content

Commit

Permalink
Handle Spec Product not raising on multiple Frames in axis
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Oct 16, 2023
1 parent b9ed5a7 commit 8ca1a02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/core/test_scanspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ def test_multiple_duration_frames():
AssertionError, match=re.escape("Zipping would overwrite axes ['DURATION']")
):
spec.calculate()
spec = ( # TODO: refactor when https://github.com/dls-controls/scanspec/issues/90
Static.duration(0.1) * Line.bounded(DURATION, 0, 0, 2)
)
frames = spec.calculate()
assert len(frames) == 2
assert get_constant_duration(frames) is None

0 comments on commit 8ca1a02

Please sign in to comment.