Skip to content

Commit

Permalink
Pass Beam object to resolution method instead of vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastisme committed Oct 28, 2024
1 parent a30c6d3 commit 90b7edf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/dials/util/image_viewer/slip_viewer/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,7 @@ def get_beam_center_px(self):
lowest_res = 0
for p_id, panel in enumerate(detector):
w, h = panel.get_image_size()
res = panel.get_resolution_at_pixel(
beam.get_unit_s0(), (w // 2, h // 2)
)
res = panel.get_resolution_at_pixel(beam, (w // 2, h // 2))
if res > lowest_res:
panel_id = p_id
lowest_res = res
Expand Down
1 change: 0 additions & 1 deletion src/dials/util/image_viewer/slip_viewer/tile_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ def get_resolution(self, x, y, readout=None):
beam = self.raw_image.get_beam()
if detector is None or beam is None:
return None
beam = beam.get_unit_s0()

if readout is None:
return None
Expand Down

0 comments on commit 90b7edf

Please sign in to comment.