Ignore:
Timestamp:
Jun 27, 2018 5:33:52 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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)
Message:

Masking dialog for fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Slicers/AzimutSlicer.py

    • Property mode changed from 100755 to 100644
    rb3e8629 re20870bc  
    44# TODO: NEED MAJOR REFACTOR 
    55# 
    6 import math 
    7 from .BaseInteractor import BaseInteractor 
     6import numpy as np 
     7from sas.qtgui.Plotting.Slicers.Arc import ArcInteractor 
     8from sas.qtgui.Plotting.Slicers.RadiusInteractor import RadiusInteractor 
     9from sas.qtgui.Plotting.Slicers.BaseInteractor import BaseInteractor 
    810 
    911class SectorInteractor(BaseInteractor): 
     
    2224        # # Number of points on the plot 
    2325        self.nbins = 20 
    24         theta1 = 2 * math.pi / 3 
    25         theta2 = -2 * math.pi / 3 
     26        theta1 = 2 * np.pi / 3 
     27        theta2 = -2 * np.pi / 3 
    2628 
    2729        # Inner circle 
    28         from .Arc import ArcInteractor 
    2930        self.inner_circle = ArcInteractor(self, self.base.subplot, 
    3031                                          zorder=zorder, 
     
    4041        self.outer_circle.qmax = self.qmax * 1.2 
    4142        # self.outer_circle.set_cursor(self.base.qmax/1.8, 0) 
    42         from Edge import RadiusInteractor 
    4343        self.right_edge = RadiusInteractor(self, self.base.subplot, 
    4444                                           zorder=zorder + 1, 
     
    132132            phimin = self.left_edge.get_angle() 
    133133            phimax = self.right_edge.get_angle() 
    134         # print "phimin, phimax, rmin ,rmax",math.degrees(phimin), 
    135         # math.degrees(phimax), rmin ,rmax 
    136         # from sas.sascalc.dataloader.manipulations import SectorQ 
    137134 
    138135        sect = new_sector(r_min=rmin, r_max=rmax, 
Note: See TracChangeset for help on using the changeset viewer.