File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 32
32
33
33
__license__ = "MIT"
34
34
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
35
- __date__ = "26/11/2022 "
35
+ __date__ = "22/02/2023 "
36
36
37
37
import unittest
38
38
import logging
@@ -307,8 +307,20 @@ def test_sigma_clip(self):
307
307
extra_options = {"thres" :2 , "error_model" :"azimuthal" },
308
308
integrator_name = "sigma_clip_ng" ,
309
309
shapeOut = (1 , 100 ))
310
+
310
311
self .assertEqual (worker .error_model , "azimuthal" , "error model is OK" )
312
+ img = numpy .random .random (ai .detector .shape )
313
+ worker (img )
311
314
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 )
312
324
313
325
class TestWorkerConfig (unittest .TestCase ):
314
326
You can’t perform that action at this time.
0 commit comments