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 418bc7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hexrd/ui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,10 @@ def masked_images_dict(self):
images_dict = self.images_dict
for det, mask in self.raw_masks_dict.items():
for name, img in images_dict.items():
if np.issubdtype(img.dtype, np.integer):
img = img.astype(float)
if det == name:
img[~mask] = 0
img[~mask] = np.nan

return images_dict

Expand Down

0 comments on commit 418bc7f

Please sign in to comment.