Skip to content

Commit

Permalink
Enable radial_profile spot finding algorithm for polychromatic data b…
Browse files Browse the repository at this point in the history
…y removing call to beam s0.
  • Loading branch information
toastisme committed Aug 27, 2024
1 parent ee1b758 commit 0ff1506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/XXX.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable radial_profile spot finding algorithm for polychromatic data by removing call to beam s0.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0ff1506

Please sign in to comment.