Changeset e20870bc in sasview for src/sas/qtgui/Plotting/Slicers/AzimutSlicer.py
- Timestamp:
- Jun 27, 2018 5:33:52 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- b1a7a81
- Parents:
- c5e0d84
- git-author:
- Piotr Rozyczko <rozyczko@…> (05/31/18 07:15:47)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (06/27/18 05:33:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Slicers/AzimutSlicer.py
- Property mode changed from 100755 to 100644
rb3e8629 re20870bc 4 4 # TODO: NEED MAJOR REFACTOR 5 5 # 6 import math 7 from .BaseInteractor import BaseInteractor 6 import numpy as np 7 from sas.qtgui.Plotting.Slicers.Arc import ArcInteractor 8 from sas.qtgui.Plotting.Slicers.RadiusInteractor import RadiusInteractor 9 from sas.qtgui.Plotting.Slicers.BaseInteractor import BaseInteractor 8 10 9 11 class SectorInteractor(BaseInteractor): … … 22 24 # # Number of points on the plot 23 25 self.nbins = 20 24 theta1 = 2 * math.pi / 325 theta2 = -2 * math.pi / 326 theta1 = 2 * np.pi / 3 27 theta2 = -2 * np.pi / 3 26 28 27 29 # Inner circle 28 from .Arc import ArcInteractor29 30 self.inner_circle = ArcInteractor(self, self.base.subplot, 30 31 zorder=zorder, … … 40 41 self.outer_circle.qmax = self.qmax * 1.2 41 42 # self.outer_circle.set_cursor(self.base.qmax/1.8, 0) 42 from Edge import RadiusInteractor43 43 self.right_edge = RadiusInteractor(self, self.base.subplot, 44 44 zorder=zorder + 1, … … 132 132 phimin = self.left_edge.get_angle() 133 133 phimax = self.right_edge.get_angle() 134 # print "phimin, phimax, rmin ,rmax",math.degrees(phimin),135 # math.degrees(phimax), rmin ,rmax136 # from sas.sascalc.dataloader.manipulations import SectorQ137 134 138 135 sect = new_sector(r_min=rmin, r_max=rmax,
Note: See TracChangeset
for help on using the changeset viewer.