Skip to content

Commit 41bd5b4

Browse files
committed
Merge remote-tracking branch 'kif/2644_automatic_dynamic_mask' into 2644_automatic_dynamic_mask
2 parents 44b69cd + bf0f207 commit 41bd5b4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/pyFAI/test/test_azimuthal_integrator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ def test_detector_dynamic_mask(self):
400400
ai1 = AzimuthalIntegrator.sload(config)
401401
img1 = det.mask.astype("uint16")*(65535-1)+1
402402
img1[300:400, 300:400] = 65535
403-
result = ai1.integrate1d(img1, 100, unit="r_mm",
404-
method=("no", "histogram", "cython"),
403+
result = ai1.integrate1d(img1, 100, unit="r_mm",
404+
method=("no", "histogram", "cython"),
405405
correctSolidAngle=False)
406406
self.assertTrue(numpy.allclose(result.intensity, numpy.ones_like(result.radial)))
407407

src/pyFAI/test/test_geometry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def test_calcfrom12d(self):
562562
img0 = UtilsTest.get_rng().random(det.shape)
563563
prof_1d = ai.integrate1d_ng(img0, 200, unit="2th_deg")
564564
sig = 1e6*numpy.sinc(prof_1d.radial / 10) ** 2
565-
img1 = ai.calcfrom1d(prof_1d.radial, sig, dim1_unit="2th_deg",
565+
img1 = ai.calcfrom1d(prof_1d.radial, sig, dim1_unit="2th_deg",
566566
mask=det.mask, dummy=-1)
567567
new_prof_1d = ai.integrate1d_ng(img1, 200, unit="2th_deg")
568568
delta = abs((new_prof_1d.intensity - sig)).max()

src/pyFAI/test/test_integrate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def setUpClass(self):
7676
self.npt = 1000
7777
self.img = UtilsTest.getimage("Pilatus1M.edf")
7878
with fabio.open(self.img) as fimg:
79-
self.data = fimg.data
79+
self.data = fimg.data
8080
self.ai = AzimuthalIntegrator(1.58323111834, 0.0334170169115, 0.0412277798782, 0.00648735642526, 0.00755810191106, 0.0, detector=Pilatus1M())
8181
self.ai.wavelength = 1e-10
8282
self.Rmax = 3
@@ -194,7 +194,7 @@ class DummyLessPilatus(Pilatus1M):
194194
DUMMY = None
195195
DELTA_DUMMY = None
196196

197-
cls.ai = AzimuthalIntegrator(1.58323111834, 0.0334170169115, 0.0412277798782, 0.00648735642526, 0.00755810191106, 0.0,
197+
cls.ai = AzimuthalIntegrator(1.58323111834, 0.0334170169115, 0.0412277798782, 0.00648735642526, 0.00755810191106, 0.0,
198198
detector=DummyLessPilatus())
199199
cls.ai.wavelength = 1e-10
200200
cls.Rmax = 30

0 commit comments

Comments
 (0)