Skip to content

Commit

Permalink
a bit more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kif committed Mar 17, 2023
1 parent f81d429 commit cb8b4dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyFAI/test/test_azimuthal_integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit cb8b4dd

Please sign in to comment.