@@ -130,7 +130,7 @@ def integrate1d(self, data, npt, filename=None,
130
130
unit = units .to_unit (unit )
131
131
if dummy is None :
132
132
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
134
134
else :
135
135
dummy = empty = numpy .float32 (dummy )
136
136
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,
612
612
mask = numpy .where (count == 0 )
613
613
if dummy is None :
614
614
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
616
616
else :
617
617
dummy = empty = numpy .float32 (dummy )
618
618
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,
715
715
pos1_scale = azimuth_unit .scale
716
716
if dummy is None :
717
717
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
719
719
else :
720
720
dummy = empty = numpy .float32 (dummy )
721
721
delta_dummy = None if delta_dummy is None else numpy .float32 (delta_dummy )
722
-
722
+
723
723
if mask is None :
724
724
has_mask = "from detector"
725
725
mask = self .mask
0 commit comments