Skip to content

Commit ccd9226

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 41bd5b4 commit ccd9226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pyFAI/integrator/azimuthal.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def integrate1d(self, data, npt, filename=None,
130130
unit = units.to_unit(unit)
131131
if dummy is None:
132132
dummy, delta_dummy = self.detector.get_dummies(data)
133-
empty = self._empty if dummy is None else dummy
133+
empty = self._empty if dummy is None else dummy
134134
else:
135135
dummy = empty = numpy.float32(dummy)
136136
delta_dummy = None if delta_dummy is None else numpy.float32(delta_dummy)
@@ -612,7 +612,7 @@ def integrate_radial(self, data, npt, npt_rad=100,
612612
mask = numpy.where(count == 0)
613613
if dummy is None:
614614
dummy, delta_dummy = self.detector.get_dummies(data)
615-
empty = self._empty if dummy is None else dummy
615+
empty = self._empty if dummy is None else dummy
616616
else:
617617
dummy = empty = numpy.float32(dummy)
618618
delta_dummy = None if delta_dummy is None else numpy.float32(delta_dummy)
@@ -715,11 +715,11 @@ def integrate2d_ng(self, data, npt_rad, npt_azim=360,
715715
pos1_scale = azimuth_unit.scale
716716
if dummy is None:
717717
dummy, delta_dummy = self.detector.get_dummies(data)
718-
empty = self._empty if dummy is None else dummy
718+
empty = self._empty if dummy is None else dummy
719719
else:
720720
dummy = empty = numpy.float32(dummy)
721721
delta_dummy = None if delta_dummy is None else numpy.float32(delta_dummy)
722-
722+
723723
if mask is None:
724724
has_mask = "from detector"
725725
mask = self.mask

0 commit comments

Comments
 (0)