From cb8b4dd5c23a3c519cde9bb41146d83837b08acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Kieffer?= Date: Fri, 17 Mar 2023 17:41:44 +0100 Subject: [PATCH] a bit more debug --- pyFAI/test/test_azimuthal_integrator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyFAI/test/test_azimuthal_integrator.py b/pyFAI/test/test_azimuthal_integrator.py index 018ea430c..73742a395 100644 --- a/pyFAI/test/test_azimuthal_integrator.py +++ b/pyFAI/test/test_azimuthal_integrator.py @@ -647,12 +647,12 @@ def test_variance_2d(self, error_model="poisson"): res = self.ai.integrate2d_ng(self.img, 10, 20, variance=variance, error_model=error_model, method=m) v = res.sum_variance # print(v.min(), v.max(), end=" ") - self.assertGreaterEqual(v.min(), 0, "min variance is positive or null") - self.assertGreater(v.max(), 0, "max variance is strictly positive") + self.assertGreaterEqual(v.min(), 0, f"min variance is positive or null with {res.method}") + self.assertGreater(v.max(), 0, f"max variance is strictly positive with {res.method}") s = res.sigma # print(type(s)) - self.assertGreaterEqual(s.min(), 0, "min sigma is positive or null") - self.assertGreater(s.max(), 0, "max sigma is strictly positive") + self.assertGreaterEqual(s.min(), 0, f"min sigma is positive or null with {res.method}") + self.assertGreater(s.max(), 0, f"max sigma is strictly positive with {res.method}") def suite():