From 0ff1506aad75cbb790b76cfdf6aabfa438698d37 Mon Sep 17 00:00:00 2001 From: davidmcdonagh Date: Tue, 27 Aug 2024 13:51:31 +0100 Subject: [PATCH] Enable radial_profile spot finding algorithm for polychromatic data by removing call to beam s0. --- newsfragments/XXX.bugfix | 1 + src/dials/extensions/radial_profile_spotfinder_threshold_ext.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 newsfragments/XXX.bugfix diff --git a/newsfragments/XXX.bugfix b/newsfragments/XXX.bugfix new file mode 100644 index 0000000000..3dde18530d --- /dev/null +++ b/newsfragments/XXX.bugfix @@ -0,0 +1 @@ +Enable radial_profile spot finding algorithm for polychromatic data by removing call to beam s0. diff --git a/src/dials/extensions/radial_profile_spotfinder_threshold_ext.py b/src/dials/extensions/radial_profile_spotfinder_threshold_ext.py index 3007d82297..5d67765350 100644 --- a/src/dials/extensions/radial_profile_spotfinder_threshold_ext.py +++ b/src/dials/extensions/radial_profile_spotfinder_threshold_ext.py @@ -105,7 +105,7 @@ def compute_threshold( beam = imageset.get_beam() # Get 2θ array for the panel or ROI - two_theta_array = panel.get_two_theta_array(beam.get_s0()) + two_theta_array = panel.get_two_theta_array(beam.get_unit_s0()) if region_of_interest: x0, x1, y0, y1 = region_of_interest two_theta_array = two_theta_array[y0:y1, x0:x1]