Skip to content
Snippets Groups Projects
Commit 8ecb76d1 authored by Michael Schneider's avatar Michael Schneider
Browse files

correct polar mask when angle range is 180 deg

parent 23fde89b
No related branches found
No related tags found
2 merge requests!94azimuthal integrator using DSSC geometry object,!87Introduce package structure, generalized binning principle, ...
......@@ -131,7 +131,7 @@ class AzimuthalIntegratorDSSC(object):
raise ValueError('Integration angle too narrow')
if np.abs(polar_range[1] - polar_range[0]) == 180:
self.polar_mask = np.ones_like(pos)
self.polar_mask = np.ones(self.shape)
else:
tmin, tmax = np.deg2rad(np.sort(polar_range)) % np.pi
polar_array = np.arctan2(xcoord, ycoord)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment