Skip to content

Commit

Permalink
Mask with NaNs in the raw view as well
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
bnmajor committed Aug 8, 2023
1 parent 6cbdb4d commit e8ad93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hexrd/ui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def masked_images_dict(self):
for det, mask in self.raw_masks_dict.items():
for name, img in images_dict.items():
if det == name:
img[~mask] = 0
img[~mask] = np.nan

return images_dict

Expand Down
2 changes: 1 addition & 1 deletion hexrd/ui/image_file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def load_dummy_images(self, initial=False):
cols = iconfig['detectors'][det]['pixels']['columns']
rows = iconfig['detectors'][det]['pixels']['rows']
shape = (rows, cols)
data = np.ones(shape, dtype=np.uint8)
data = np.ones(shape, dtype=np.float16)
ims = imageseries.open(None, 'array', data=data)

# Set a flag on these image series indicating that they are
Expand Down

0 comments on commit e8ad93e

Please sign in to comment.