Skip to content

Commit

Permalink
Fix trusted range mask display bug when viewing stacked images (dials…
Browse files Browse the repository at this point in the history
…#2830)

* Fix for trusted_range masking bug for stacked images.

---------

Co-authored-by: [email protected]
  • Loading branch information
dagewa authored Dec 18, 2024
1 parent 9197bf1 commit 9a0f7c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions newsfragments/2830.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.image_viewer``: Fix display bug with the trusted range mask when viewed stacked images.
5 changes: 5 additions & 0 deletions src/dials/util/image_viewer/spotfinder_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ def stack_images(self):
if self.params.stack_images > 1:
self.settings.display = "image"
image = self.pyslip.tiles.raw_image

# This clears the cached image data in chooser_wrapper and forces image reload
# See https://github.com/dials/dials/issues/2174
image.set_image_data(None)

image_data = image.get_image_data()
if not isinstance(image_data, tuple):
image_data = (image_data,)
Expand Down

0 comments on commit 9a0f7c8

Please sign in to comment.