Skip to content
Merged

Qwedge #3601

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/sas/qtgui/Plotting/Slicers/WedgeSlicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def __init__(self, base, axes, item=None, color="black", zorder=3):
self.theta = np.pi / 3
# Angle between the central line and the radial lines either side of it
self.phi = np.pi / 8
# If True, I(|Q|) will be return, otherwise,
# negative q-values are allowed
# Default to true on initialize
# Same as BoxInteractor
self.fold = True
# reference of the current data averager
self.averager = None

Expand Down Expand Up @@ -171,7 +176,7 @@ def _post_data(self, new_sector=None, nbins=None):
# Add pi to the angles before invoking sector averaging to transform angular
# range from python default of -pi,pi to 0,2pi suitable for manipulations
sect = self.averager(r_min=rmin, r_max=rmax, phi_min=phimin + np.pi, phi_max=phimax + np.pi, nbins=self.nbins)
sect.fold = False
sect.fold = self.fold
sector = sect(self.data)

if hasattr(sector, "dxl"):
Expand Down