Skip to content

Commit

Permalink
Fix DLS-only tests for new trusted range (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa authored Sep 16, 2022
1 parent 8916daf commit a853417
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions newsfragments/556.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct some tests following changes to the definition of ``trusted_range``.
2 changes: 1 addition & 1 deletion tests/format/test_FormatNXmxDLS.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_VMXi_rotation_scan():
assert (
tuple(reversed(panel.get_image_size())) == imageset[0][0].all() == (2162, 2068)
)
assert panel.get_trusted_range() == (-1, 23315)
assert panel.get_trusted_range() == (0, 23315)
assert panel.get_fast_axis() == (1, 0, 0)
assert panel.get_slow_axis() == (0, -1, 0)
assert panel.get_origin() == pytest.approx((-79.155, 87.4875, -183.1849844439))
Expand Down
4 changes: 2 additions & 2 deletions tests/format/test_FormatNXmxDLS16M.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_rotation_scan_i04(master_h5):
panel = detector[0]
assert panel.get_pixel_size() == (0.075, 0.075)
assert panel.get_image_size() == (4148, 4362)
assert panel.get_trusted_range() == (-1, 22726)
assert panel.get_trusted_range() == (0, 22726)
assert panel.get_fast_axis() == (1, 0, 0)
assert panel.get_slow_axis() == (0, -1, 0)
assert panel.get_origin() == pytest.approx(
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_grid_scan_i04():
panel = detector[0]
assert panel.get_pixel_size() == (0.075, 0.075)
assert panel.get_image_size() == (4148, 4362)
assert panel.get_trusted_range() == (-1, 65535)
assert panel.get_trusted_range() == (0, 65535)
assert panel.get_fast_axis() == (1, 0, 0)
assert panel.get_slow_axis() == (0, -1, 0)
assert panel.get_origin() == pytest.approx(
Expand Down

0 comments on commit a853417

Please sign in to comment.