diff --git a/newsfragments/XXX.misc b/newsfragments/XXX.misc new file mode 100644 index 000000000..d01880165 --- /dev/null +++ b/newsfragments/XXX.misc @@ -0,0 +1 @@ +Fix regression test after scan changes diff --git a/tests/test_FormatCBFFull.py b/tests/test_FormatCBFFull.py index 0b3d4a71c..c8ad43d12 100644 --- a/tests/test_FormatCBFFull.py +++ b/tests/test_FormatCBFFull.py @@ -40,7 +40,9 @@ def test_still(dials_regression): imgset = ImageSetFactory.new(os.path.join(data_dir, "grid_full_cbf_0005.cbf"))[0] if imgset.get_scan(0): scan = imgset.get_scan(0) - assert approx_equal(scan.get_image_oscillation(0), (30.0, 0.0), eps=1e-5) + assert approx_equal( + scan.get_image_oscillation(scan.get_image_range()[0]), (30.0, 0.0), eps=1e-5 + ) beam = imgset.get_beam(0) beam.get_s0() assert approx_equal(beam.get_s0(), (-0.0, -0.0, -1.0209290454313424))