Changeset b3e8629 in sasview for src/sas/qtgui/Plotting/Slicers
- Timestamp:
- Nov 9, 2017 8:41:54 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, 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:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- Location:
- src/sas/qtgui/Plotting/Slicers
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Slicers/AnnulusSlicer.py
rdc5ef15 rb3e8629 4 4 5 5 import sas.qtgui.Utilities.GuiUtils as GuiUtils 6 from BaseInteractor import BaseInteractor6 from .BaseInteractor import BaseInteractor 7 7 from sas.qtgui.Plotting.PlotterData import Data1D 8 8 from sas.qtgui.Utilities.GuiUtils import formatNumber -
src/sas/qtgui/Plotting/Slicers/Arc.py
r749b715 rb3e8629 4 4 import math 5 5 6 from BaseInteractor import BaseInteractor6 from .BaseInteractor import BaseInteractor 7 7 8 8 class ArcInteractor(BaseInteractor): -
src/sas/qtgui/Plotting/Slicers/AzimutSlicer.py
rdc5ef15 rb3e8629 5 5 # 6 6 import math 7 from BaseInteractor import BaseInteractor7 from .BaseInteractor import BaseInteractor 8 8 9 9 class SectorInteractor(BaseInteractor): … … 26 26 27 27 # Inner circle 28 from Arc import ArcInteractor28 from .Arc import ArcInteractor 29 29 self.inner_circle = ArcInteractor(self, self.base.subplot, 30 30 zorder=zorder, -
src/sas/qtgui/Plotting/Slicers/BoxSlicer.py
rdc5ef15 rb3e8629 3 3 from PyQt4 import QtCore 4 4 5 from BaseInteractor import BaseInteractor5 from .BaseInteractor import BaseInteractor 6 6 from sas.qtgui.Plotting.PlotterData import Data1D 7 7 import sas.qtgui.Utilities.GuiUtils as GuiUtils … … 136 136 if new_slab is None: 137 137 msg = "post data:cannot average , averager is empty" 138 raise ValueError , msg138 raise ValueError(msg) 139 139 self.averager = new_slab 140 140 if self.direction == "X": … … 152 152 else: 153 153 msg = "post data:no Box Average direction was supplied" 154 raise ValueError , msg154 raise ValueError(msg) 155 155 # # Average data2D given Qx or Qy 156 156 box = self.averager(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max, -
src/sas/qtgui/Plotting/Slicers/BoxSum.py
rdc5ef15 rb3e8629 8 8 from sas.qtgui.Utilities.GuiUtils import formatNumber 9 9 10 from BaseInteractor import BaseInteractor10 from .BaseInteractor import BaseInteractor 11 11 from sas.sascalc.dataloader.manipulations import Boxavg 12 12 from sas.sascalc.dataloader.manipulations import Boxsum -
src/sas/qtgui/Plotting/Slicers/SectorSlicer.py
rdc5ef15 rb3e8629 6 6 from PyQt4 import QtCore 7 7 8 from BaseInteractor import BaseInteractor8 from .BaseInteractor import BaseInteractor 9 9 from sas.qtgui.Plotting.PlotterData import Data1D 10 10 import sas.qtgui.Utilities.GuiUtils as GuiUtils … … 230 230 msg = "Phi left and phi right are different" 231 231 msg += " %f, %f" % (self.left_line.phi, self.right_line.phi) 232 raise ValueError , msg232 raise ValueError(msg) 233 233 params["Phi [deg]"] = self.main_line.theta * 180 / numpy.pi 234 234 params["Delta_Phi [deg]"] = numpy.fabs(self.left_line.phi * 180 / numpy.pi)
Note: See TracChangeset
for help on using the changeset viewer.