From 24c1c340b0a7853c252efb02896b09a71b65a849 Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:40:27 +0000 Subject: [PATCH] Update test --- newsfragments/XXX.misc | 1 + tests/test_FormatCBFFull.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 newsfragments/XXX.misc 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))