Skip to content

Commit f9a3b8a

Browse files
committed
Non regression test for #1825
1 parent d655283 commit f9a3b8a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pyFAI/test/test_worker.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
__contact__ = "[email protected]"
3333
__license__ = "MIT"
3434
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
35-
__date__ = "26/11/2022"
35+
__date__ = "22/02/2023"
3636

3737
import unittest
3838
import logging
@@ -307,8 +307,20 @@ def test_sigma_clip(self):
307307
extra_options={"thres":2, "error_model":"azimuthal"},
308308
integrator_name="sigma_clip_ng",
309309
shapeOut=(1, 100))
310+
310311
self.assertEqual(worker.error_model, "azimuthal", "error model is OK")
312+
img = numpy.random.random(ai.detector.shape)
313+
worker(img)
311314

315+
def test_sigma_clip_legacy(self):
316+
"Non regression test for #1825"
317+
ai = AzimuthalIntegrator.sload({"detector": "Pilatus100k", "wavelength":1e-10})
318+
worker = Worker(azimuthalIntegrator=ai,
319+
extra_options={"thres":2},
320+
integrator_name="sigma_clip_legacy",
321+
shapeOut=(1, 100))
322+
img = numpy.random.random(ai.detector.shape)
323+
worker(img)
312324

313325
class TestWorkerConfig(unittest.TestCase):
314326

0 commit comments

Comments
 (0)