From dbd7edea748f9e7db63a9bc3d990acfb0b9335b7 Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:15:45 +0000 Subject: [PATCH] Update FormatCBFFull test following scan changes (#670) Update test --- newsfragments/670.misc | 1 + tests/test_FormatCBFFull.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 newsfragments/670.misc diff --git a/newsfragments/670.misc b/newsfragments/670.misc new file mode 100644 index 000000000..d01880165 --- /dev/null +++ b/newsfragments/670.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))