From 8c41b39b88bdaac8875c6ff4f582173177d22b60 Mon Sep 17 00:00:00 2001 From: Jerome Kieffer Date: Tue, 5 Sep 2023 11:42:24 +0200 Subject: [PATCH] Correct dynamic mask the test was the other way around ... gave only none-sense results. --- pyFAI/detectors/_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyFAI/detectors/_common.py b/pyFAI/detectors/_common.py index 783559b59..7b7b79934 100644 --- a/pyFAI/detectors/_common.py +++ b/pyFAI/detectors/_common.py @@ -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)