From cf044ff85c21e21eae363f280931425baf6a880f Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Tue, 17 Oct 2023 12:54:26 +0100 Subject: [PATCH] Don't set batch offset when creating image sequences --- newsfragments/XXX.bugfix | 1 + src/dxtbx/imageset.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 newsfragments/XXX.bugfix diff --git a/newsfragments/XXX.bugfix b/newsfragments/XXX.bugfix new file mode 100644 index 000000000..53b8eafe7 --- /dev/null +++ b/newsfragments/XXX.bugfix @@ -0,0 +1 @@ +Don't set batch offset when creating image sequences. diff --git a/src/dxtbx/imageset.py b/src/dxtbx/imageset.py index 564ced681..f499d5c6e 100644 --- a/src/dxtbx/imageset.py +++ b/src/dxtbx/imageset.py @@ -570,9 +570,6 @@ def make_sequence( # Set the image range array_range = (min(indices) - 1, max(indices)) - if scan is not None: - assert array_range == scan.get_array_range() - scan.set_batch_offset(array_range[0]) # Get the format object and reader if format_class is None: