Skip to content

Commit

Permalink
Merge pull request #1933 from silx-kit/dynamic-mask
Browse files Browse the repository at this point in the history
Correct dynamic mask
  • Loading branch information
kif authored Sep 5, 2023
2 parents 847b00b + 8c41b39 commit cae5c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyFAI/detectors/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,8 @@ def dynamic_mask(self, img):
static_mask = self.mask
if static_mask is None:
static_mask = numpy.zeros(self.shape, numpy.int8)
if self.dummy is not None:
logger.warning("dynamic_mask makes sense only when dummy is defined !")
if self.dummy is None:
logger.info("dynamic_mask makes sense only when dummy is defined !")
return static_mask
else:
actual_dummy = numpy.dtype(img.dtype).type(self.dummy)
Expand Down

0 comments on commit cae5c46

Please sign in to comment.