- Timestamp:
- Feb 19, 2016 10:07:22 AM (9 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d7bb526
- Parents:
- 792e6be
- Location:
- src
- Files:
-
- 6 added
- 48 edited
- 58 moved
Legend:
- Unmodified
- Added
- Removed
-
src/examples/test_panel2D.py
r3a39c2e rb699768 200 200 path = dlg.GetPath() 201 201 mypath = os.path.basename(path) 202 from sas. dataloader.loader import Loader202 from sas.sascalc.dataloader.loader import Loader 203 203 204 204 #Instantiate a loader -
src/sas/guiframe/CategoryInstaller.py
rfd5ac0d rb699768 33 33 returns the dir where installed_models.txt should be 34 34 """ 35 import sas. dataloader.readers36 return sas. dataloader.readers.get_data_path()35 import sas.sascalc.dataloader.readers 36 return sas.sascalc.dataloader.readers.get_data_path() 37 37 38 38 @staticmethod -
src/sas/guiframe/dataFitting.py
r79492222 rb699768 5 5 import numpy 6 6 import math 7 from sas. data_util.uncertainty import Uncertainty7 from sas.sascalc.data_util.uncertainty import Uncertainty 8 8 from sas.plottools.plottables import Data1D as PlotData1D 9 9 from sas.plottools.plottables import Data2D as PlotData2D 10 10 from sas.plottools.plottables import Theory1D as PlotTheory1D 11 11 12 from sas. dataloader.data_info import Data1D as LoadData1D13 from sas. dataloader.data_info import Data2D as LoadData2D12 from sas.sascalc.dataloader.data_info import Data1D as LoadData1D 13 from sas.sascalc.dataloader.data_info import Data2D as LoadData2D 14 14 15 15 -
src/sas/guiframe/data_manager.py
r79492222 rb699768 21 21 from sas.guiframe.data_state import DataState 22 22 from sas.guiframe.utils import parse_name 23 import sas. dataloader.data_info as DataInfo23 import sas.sascalc.dataloader.data_info as DataInfo 24 24 from sas.guiframe.dataFitting import Data1D 25 25 from sas.guiframe.dataFitting import Data2D -
src/sas/guiframe/data_panel.py
r3a5f7c8 rb699768 34 34 from sas.guiframe.gui_style import GUIFRAME 35 35 from sas.guiframe.events import NewBatchEvent 36 from sas. dataloader.loader import Loader36 from sas.sascalc.dataloader.loader import Loader 37 37 #from sas.guiframe.local_perspectives.plotting.masking \ 38 38 # import FloatPanel as QucikPlotDialog -
src/sas/guiframe/gui_manager.py
r225aca8 rb699768 45 45 from sas.guiframe.events import EVT_NEW_BATCH 46 46 from sas.guiframe.CategoryManager import CategoryManager 47 from sas. dataloader.loader import Loader47 from sas.sascalc.dataloader.loader import Loader 48 48 from sas.guiframe.proxy import Connection 49 49 from matplotlib import _pylab_helpers -
src/sas/guiframe/local_perspectives/data_loader/data_loader.py
rf21d496 rb699768 8 8 import logging 9 9 10 from sas. dataloader.loader import Loader10 from sas.sascalc.dataloader.loader import Loader 11 11 from sas.guiframe.plugin_base import PluginBase 12 12 from sas.guiframe.events import StatusEvent -
src/sas/guiframe/local_perspectives/data_loader/load_thread.py
rb9dbd6b rb699768 6 6 import os 7 7 8 from sas. data_util.calcthread import CalcThread8 from sas.sascalc.data_util.calcthread import CalcThread 9 9 10 10 -
src/sas/guiframe/local_perspectives/plotting/AnnulusSlicer.py
r824e488 rb699768 125 125 return 126 126 127 from sas. dataloader.manipulations import Ring127 from sas.sascalc.dataloader.manipulations import Ring 128 128 rmin = min(math.fabs(self.inner_circle.get_radius()), 129 129 math.fabs(self.outer_circle.get_radius())) … … 524 524 return 525 525 mask = data.mask 526 from sas. dataloader.manipulations import Ringcut526 from sas.sascalc.dataloader.manipulations import Ringcut 527 527 528 528 rmin = 0 -
src/sas/guiframe/local_perspectives/plotting/AzimutSlicer.py
r824e488 rb699768 150 150 # print "phimin, phimax, rmin ,rmax",math.degrees(phimin), 151 151 # math.degrees(phimax), rmin ,rmax 152 # from sas. dataloader.manipulations import SectorQ152 # from sas.sascalc.dataloader.manipulations import SectorQ 153 153 154 154 sect = new_sector(r_min=rmin, r_max=rmax, … … 261 261 """ 262 262 """ 263 from sas. dataloader.manipulations import SectorQ263 from sas.sascalc.dataloader.manipulations import SectorQ 264 264 self.post_data(SectorQ) 265 265 … … 278 278 """ 279 279 """ 280 from sas. dataloader.manipulations import SectorPhi280 from sas.sascalc.dataloader.manipulations import SectorPhi 281 281 self.post_data(SectorPhi) 282 282 -
src/sas/guiframe/local_perspectives/plotting/Plotter2D.py
r6f16e25 rb699768 571 571 npt = math.sqrt(len(self.data2D.data[numpy.isfinite(self.data2D.data)])) 572 572 npt = math.floor(npt) 573 from sas. dataloader.manipulations import CircularAverage573 from sas.sascalc.dataloader.manipulations import CircularAverage 574 574 ## compute the maximum radius of data2D 575 575 self.qmax = max(math.fabs(self.data2D.xmax), -
src/sas/guiframe/local_perspectives/plotting/SectorSlicer.py
rb40ad40 rb699768 147 147 return 148 148 ## Averaging 149 from sas. dataloader.manipulations import SectorQ149 from sas.sascalc.dataloader.manipulations import SectorQ 150 150 radius = self.qmax 151 151 phimin = -self.left_line.phi + self.main_line.theta -
src/sas/guiframe/local_perspectives/plotting/boxMask.py
rb5de88e rb699768 142 142 contained in that region and the error on that sum 143 143 """ 144 from sas. dataloader.manipulations import Boxcut144 from sas.sascalc.dataloader.manipulations import Boxcut 145 145 # # Data 2D for which the pixel will be summed 146 146 data = self.base.data -
src/sas/guiframe/local_perspectives/plotting/boxSlicer.py
rb5de88e rb699768 519 519 Post data creating by averaging in Qx direction 520 520 """ 521 from sas. dataloader.manipulations import SlabX521 from sas.sascalc.dataloader.manipulations import SlabX 522 522 self.post_data(SlabX, direction="X") 523 523 … … 536 536 Post data creating by averaging in Qy direction 537 537 """ 538 from sas. dataloader.manipulations import SlabY538 from sas.sascalc.dataloader.manipulations import SlabY 539 539 self.post_data(SlabY, direction="Y") 540 540 -
src/sas/guiframe/local_perspectives/plotting/boxSum.py
rb5de88e rb699768 180 180 y_max = self.vertical_lines.y1 181 181 # #computation of the sum and its error 182 from sas. dataloader.manipulations import Boxavg182 from sas.sascalc.dataloader.manipulations import Boxavg 183 183 box = Boxavg(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 184 184 self.count, self.error = box(self.base.data2D) 185 185 # Dig out number of points summed, SMK & PDB, 04/03/2013 186 from sas. dataloader.manipulations import Boxsum186 from sas.sascalc.dataloader.manipulations import Boxsum 187 187 boxtotal = Boxsum(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 188 188 self.total, self.totalerror, self.points = boxtotal(self.base.data2D) -
src/sas/guiframe/local_perspectives/plotting/masking.py
rc039589 rb699768 52 52 FONT_VARIANT = 1 53 53 54 from sas. data_util.calcthread import CalcThread54 from sas.sascalc.data_util.calcthread import CalcThread 55 55 56 56 class CalcPlot(CalcThread): -
src/sas/guiframe/local_perspectives/plotting/sector_mask.py
rc039589 rb699768 120 120 return 121 121 ## Averaging 122 from sas. dataloader.manipulations import Sectorcut122 from sas.sascalc.dataloader.manipulations import Sectorcut 123 123 phimin = -self.left_line.phi + self.main_line.theta 124 124 phimax = self.left_line.phi + self.main_line.theta -
src/sas/models/smearing_2d.py
rfd5ac0d rb699768 240 240 dz = numpy.sqrt(z) 241 241 242 from sas. dataloader import Data2D242 from sas.sascalc.dataloader import Data2D 243 243 #for i in range(10): print i, 0.001 + i*0.008/9.0 244 244 #for i in range(100): print i, int(math.floor( (i/ (100/9.0)) )) -
src/sas/perspectives/calculator/collimation_editor.py
r49ab5d7 rb699768 4 4 import sys 5 5 from copy import deepcopy 6 from sas. dataloader.loader import Loader7 from sas. dataloader.data_info import Aperture, Collimation6 from sas.sascalc.dataloader.loader import Loader 7 from sas.sascalc.dataloader.data_info import Aperture, Collimation 8 8 from aperture_editor import ApertureDialog 9 9 -
src/sas/perspectives/calculator/console.py
r49ab5d7 rb699768 4 4 import wx 5 5 import sys 6 from sas. dataloader.loader import Loader6 from sas.sascalc.dataloader.loader import Loader 7 7 8 8 _BOX_WIDTH = 60 -
src/sas/perspectives/calculator/data_editor.py
rac7be54 rb699768 5 5 from copy import deepcopy 6 6 7 from sas. dataloader.loader import Loader8 from sas. dataloader.data_info import Data2D7 from sas.sascalc.dataloader.loader import Loader 8 from sas.sascalc.dataloader.data_info import Data2D 9 9 from detector_editor import DetectorDialog 10 10 from collimation_editor import CollimationDialog -
src/sas/perspectives/calculator/data_operator.py
r3db44fb rb699768 6 6 import time 7 7 import numpy 8 from sas. dataloader.data_info import Data1D8 from sas.sascalc.dataloader.data_info import Data1D 9 9 from sas.plottools.PlotPanel import PlotPanel 10 10 from sas.plottools.plottables import Graph -
src/sas/perspectives/calculator/detector_editor.py
r49ab5d7 rb699768 3 3 import sys 4 4 from copy import deepcopy 5 from sas. dataloader.data_info import Detector5 from sas.sascalc.dataloader.data_info import Detector 6 6 from sas.guiframe.utils import check_float 7 7 -
src/sas/perspectives/calculator/gen_scatter_panel.py
r3db44fb rb699768 20 20 21 21 #from sas.guiframe.gui_manager import MDIFrame 22 from sas. data_util.calcthread import CalcThread22 from sas.sascalc.data_util.calcthread import CalcThread 23 23 from sas.guiframe.local_perspectives.plotting.SimplePlot import PlotFrame 24 24 from sas.guiframe.dataFitting import Data2D 25 25 from sas.guiframe.dataFitting import Data1D 26 from sas. dataloader.data_info import Detector27 from sas. dataloader.data_info import Source26 from sas.sascalc.dataloader.data_info import Detector 27 from sas.sascalc.dataloader.data_info import Source 28 28 from sas.guiframe.panel_base import PanelBase 29 29 from sas.guiframe.utils import format_number 30 30 from sas.guiframe.events import StatusEvent 31 from sas. calculator import sas_gen31 from sas.sascalc.calculator import sas_gen 32 32 from sas.perspectives.calculator.calculator_widgets import OutputTextCtrl 33 33 from sas.perspectives.calculator.calculator_widgets import InputTextCtrl -
src/sas/perspectives/calculator/image_viewer.py
r3db44fb rb699768 13 13 from sas.guiframe.events import StatusEvent 14 14 from sas.perspectives.calculator.calculator_widgets import InputTextCtrl 15 from sas. dataloader.data_info import Data2D16 from sas. dataloader.data_info import Detector17 from sas. dataloader.manipulations import reader2D_converter15 from sas.sascalc.dataloader.data_info import Data2D 16 from sas.sascalc.dataloader.data_info import Detector 17 from sas.sascalc.dataloader.manipulations import reader2D_converter 18 18 from sas.guiframe.documentation_window import DocumentationWindow 19 19 -
src/sas/perspectives/calculator/kiessig_calculator_panel.py
r3db44fb rb699768 13 13 14 14 from sas.guiframe.panel_base import PanelBase 15 from sas. calculator.kiessig_calculator import KiessigThicknessCalculator15 from sas.sascalc.calculator.kiessig_calculator import KiessigThicknessCalculator 16 16 from calculator_widgets import OutputTextCtrl 17 17 from calculator_widgets import InputTextCtrl -
src/sas/perspectives/calculator/load_thread.py
r49ab5d7 rb699768 3 3 """ 4 4 import time 5 from sas. data_util.calcthread import CalcThread6 from sas. dataloader.loader import Loader5 from sas.sascalc.data_util.calcthread import CalcThread 6 from sas.sascalc.dataloader.loader import Loader 7 7 8 8 class DataReader(CalcThread): -
src/sas/perspectives/calculator/resolcal_thread.py
r49ab5d7 rb699768 3 3 """ 4 4 import time 5 from sas. data_util.calcthread import CalcThread5 from sas.sascalc.data_util.calcthread import CalcThread 6 6 7 7 class CalcRes(CalcThread): -
src/sas/perspectives/calculator/resolution_calculator_panel.py
r3db44fb rb699768 26 26 27 27 #from sas.guicomm.events import StatusEvent 28 from sas. calculator.resolution_calculator import ResolutionCalculator28 from sas.sascalc.calculator.resolution_calculator import ResolutionCalculator 29 29 from sas.guiframe.events import StatusEvent 30 30 from sas.perspectives.calculator.calculator_widgets import OutputTextCtrl -
src/sas/perspectives/calculator/sample_editor.py
r49ab5d7 rb699768 546 546 if __name__ == "__main__": 547 547 app = wx.App() 548 from sas. dataloader.data_info import Sample548 from sas.sascalc.dataloader.data_info import Sample 549 549 sample = Sample() 550 550 dlg = SampleDialog(sample=sample) -
src/sas/perspectives/calculator/slit_length_calculator_panel.py
r3db44fb rb699768 16 16 17 17 from sas.guiframe.events import StatusEvent 18 from sas. calculator.slit_length_calculator import SlitlengthCalculator18 from sas.sascalc.calculator.slit_length_calculator import SlitlengthCalculator 19 19 from calculator_widgets import OutputTextCtrl 20 20 from calculator_widgets import InterActiveOutputTextCtrl -
src/sas/perspectives/calculator/source_editor.py
r49ab5d7 rb699768 534 534 if __name__ == "__main__": 535 535 app = wx.App() 536 from sas. dataloader.data_info import Source536 from sas.sascalc.dataloader.data_info import Source 537 537 source = Source() 538 538 dlg = SourceDialog(source=source) -
src/sas/perspectives/fitting/basepage.py
r1c2bf90 rb699768 23 23 from sas.guiframe.dataFitting import check_data_validity 24 24 from sas.guiframe.gui_style import GUIFRAME_ID 25 from sas. dataloader.data_info import Detector26 from sas. dataloader.data_info import Source25 from sas.sascalc.dataloader.data_info import Detector 26 from sas.sascalc.dataloader.data_info import Source 27 27 from sas.perspectives.fitting.pagestate import PageState 28 28 from sas.guiframe.CategoryInstaller import CategoryInstaller -
src/sas/perspectives/fitting/console.py
r2f4b430 rb699768 5 5 import time 6 6 import wx 7 from sas. fit import FitHandler7 from sas.sascalc.fit import FitHandler 8 8 9 9 class ConsoleUpdate(FitHandler): -
src/sas/perspectives/fitting/fit_thread.py
r2f4b430 rb699768 2 2 import sys 3 3 import time 4 from sas. data_util.calcthread import CalcThread4 from sas.sascalc.data_util.calcthread import CalcThread 5 5 6 6 def map_getattr(classInstance, classFunc, *args): -
src/sas/perspectives/fitting/fitting.py
r6f16e25 rb699768 21 21 import models 22 22 23 from sas. dataloader.loader import Loader23 from sas.sascalc.dataloader.loader import Loader 24 24 from sas.guiframe.dataFitting import Data2D 25 25 from sas.guiframe.dataFitting import Data1D … … 32 32 from sas.guiframe.plugin_base import PluginBase 33 33 from sas.guiframe.data_processor import BatchCell 34 from sas. fit.BumpsFitting import BumpsFit as Fit34 from sas.sascalc.fit.BumpsFitting import BumpsFit as Fit 35 35 from sas.perspectives.fitting.console import ConsoleUpdate 36 36 from sas.perspectives.fitting.fitproblem import FitProblemDictionary -
src/sas/perspectives/fitting/model_thread.py
ra3f125f0 rb699768 6 6 import numpy 7 7 import math 8 from sas. data_util.calcthread import CalcThread8 from sas.sascalc.data_util.calcthread import CalcThread 9 9 10 10 class Calc2D(CalcThread): -
src/sas/perspectives/fitting/pagestate.py
rabcbe09 rb699768 25 25 from lxml import etree 26 26 27 import sas. dataloader28 from sas. dataloader.readers.cansas_reader import Reader as CansasReader29 from sas. dataloader.readers.cansas_reader import get_content, write_node30 from sas. dataloader.data_info import Data2D31 from sas. dataloader.data_info import Collimation32 from sas. dataloader.data_info import Detector33 from sas. dataloader.data_info import Process34 from sas. dataloader.data_info import Aperture27 import sas.sascalc.dataloader 28 from sas.sascalc.dataloader.readers.cansas_reader import Reader as CansasReader 29 from sas.sascalc.dataloader.readers.cansas_reader import get_content, write_node 30 from sas.sascalc.dataloader.data_info import Data2D 31 from sas.sascalc.dataloader.data_info import Collimation 32 from sas.sascalc.dataloader.data_info import Detector 33 from sas.sascalc.dataloader.data_info import Process 34 from sas.sascalc.dataloader.data_info import Aperture 35 35 #Information to read/write state as xml 36 36 FITTING_NODE_NAME = 'fitting_plug_in' -
src/sas/perspectives/invariant/__init__.py
r79492222 rb699768 1 1 PLUGIN_ID = "Invariant plug-in 1.0" 2 2 import os 3 4 from distutils.filelist import findall 3 5 from invariant import * 4 from distutils.filelist import findall 6 5 7 def get_data_path(media): 6 8 """ -
src/sas/perspectives/invariant/invariant.py
rf21d496 rb699768 23 23 from sas.guiframe.gui_style import GUIFRAME_ID 24 24 from sas.perspectives.invariant.invariant_state import Reader as reader 25 from sas. dataloader.loader import Loader25 from sas.sascalc.dataloader.loader import Loader 26 26 from sas.perspectives.invariant.invariant_panel import InvariantPanel 27 27 from sas.guiframe.plugin_base import PluginBase -
src/sas/perspectives/invariant/invariant_panel.py
r0e33a8d rb699768 9 9 import wx 10 10 import logging 11 11 12 from wx.lib.scrolledpanel import ScrolledPanel 12 from sas.invariant import invariant 13 from sas.sascalc.invariant import invariant 14 13 15 from sas.guiframe.utils import format_number 14 16 from sas.guiframe.utils import check_float … … 1922 1924 wx.Frame.__init__(self, parent, id, title, size=(PANEL_WIDTH + 100, 1923 1925 PANEL_HEIGHT + 100)) 1924 from sas. dataloader.loader import Loader1926 from sas.sascalc.dataloader.loader import Loader 1925 1927 self.loader = Loader() 1926 1928 path = "C:/ECLPS/workspace/trunk/sasdataloader/test/ascii_test_3.txt" -
src/sas/perspectives/invariant/invariant_state.py
r78a205a rb699768 8 8 import logging 9 9 import copy 10 import sas. dataloader10 import sas.sascalc.dataloader 11 11 # from xml.dom.minidom import parse 12 12 from lxml import etree 13 from sas. dataloader.readers.cansas_reader import Reader as CansasReader14 from sas. dataloader.readers.cansas_reader import get_content13 from sas.sascalc.dataloader.readers.cansas_reader import Reader as CansasReader 14 from sas.sascalc.dataloader.readers.cansas_reader import get_content 15 15 from sas.guiframe.utils import format_number 16 16 from sas.guiframe.gui_style import GUIFRAME_ID -
src/sas/perspectives/pr/explore_dialog.py
r3d250da3 rb699768 150 150 Initialization. The parameters added to Dialog are: 151 151 152 :param pr_state: sas. pr.invertor.Invertor object152 :param pr_state: sas.sascalc.pr.invertor.Invertor object 153 153 :param nfunc: Number of terms in the expansion 154 154 -
src/sas/perspectives/pr/inversion_panel.py
rf21d496 rb699768 966 966 """ 967 967 def __init__(self, parent, id): 968 from sas. pr.invertor import help968 from sas.sascalc.pr.invertor import help 969 969 wx.Dialog.__init__(self, parent, id, size=(250, 120)) 970 970 self.SetTitle("P(r) distribution") -
src/sas/perspectives/pr/inversion_state.py
r8b21fa7 rb699768 19 19 from lxml import etree 20 20 from sas.guiframe.dataFitting import Data1D 21 from sas. dataloader.readers.cansas_reader import Reader as CansasReader22 from sas. dataloader.readers.cansas_reader import get_content21 from sas.sascalc.dataloader.readers.cansas_reader import Reader as CansasReader 22 from sas.sascalc.dataloader.readers.cansas_reader import get_content 23 23 24 24 PRNODE_NAME = 'pr_inversion' -
src/sas/perspectives/pr/pr.py
rf21d496 rb699768 28 28 from sas.guiframe.events import StatusEvent 29 29 from sas.guiframe.gui_style import GUIFRAME_ID 30 from sas. pr.invertor import Invertor31 from sas. dataloader.loader import Loader32 import sas. dataloader30 from sas.sascalc.pr.invertor import Invertor 31 from sas.sascalc.dataloader.loader import Loader 32 import sas.sascalc.dataloader 33 33 34 34 from pr_widgets import load_error -
src/sas/perspectives/pr/pr_thread.py
r8b21fa7 rb699768 12 12 import sys 13 13 import time 14 from sas. data_util.calcthread import CalcThread14 from sas.sascalc.data_util.calcthread import CalcThread 15 15 16 16 class CalcPr(CalcThread): -
src/sas/perspectives/simulation/simulation.py
r79492222 rb699768 22 22 import sas.realspace.VolumeCanvas as VolumeCanvas 23 23 24 from sas. data_util.calcthread import CalcThread24 from sas.sascalc.data_util.calcthread import CalcThread 25 25 from sas.guicomm.events import NewPlotEvent, StatusEvent 26 26 -
src/sas/sascalc/calculator/resolution_calculator.py
rb6627d9 rb699768 1086 1086 # try to set it as a Data2D otherwise pass (not required for now) 1087 1087 try: 1088 from sas. dataloader.data_info import Data2D1088 from sas.sascalc.dataloader.data_info import Data2D 1089 1089 output = Data2D() 1090 1090 inten = numpy.zeros_like(qx_value) -
src/sas/sascalc/dataloader/data_info.py
r3a5f7c8 rb699768 22 22 23 23 #from sas.guitools.plottables import Data1D as plottable_1D 24 from sas. data_util.uncertainty import Uncertainty24 from sas.sascalc.data_util.uncertainty import Uncertainty 25 25 import numpy 26 26 import math -
src/sas/sascalc/dataloader/loader.py
rf06d7fc rb699768 26 26 import time 27 27 from zipfile import ZipFile 28 from sas. data_util.registry import ExtensionRegistry28 from sas.sascalc.data_util.registry import ExtensionRegistry 29 29 # Default readers are defined in the readers sub-module 30 30 import readers -
src/sas/sascalc/dataloader/manipulations.py
r3c3a440 rb699768 97 97 98 98 #TODO: make sense of the following two lines... 99 #from sas. dataloader.data_info import Data2D99 #from sas.sascalc.dataloader.data_info import Data2D 100 100 #output = Data2D() 101 101 output = data2d -
src/sas/sascalc/dataloader/readers/IgorReader.py
r79492222 rb699768 16 16 import math 17 17 #import logging 18 from sas. dataloader.data_info import Data2D19 from sas. dataloader.data_info import Detector20 from sas. dataloader.manipulations import reader2D_converter18 from sas.sascalc.dataloader.data_info import Data2D 19 from sas.sascalc.dataloader.data_info import Detector 20 from sas.sascalc.dataloader.manipulations import reader2D_converter 21 21 22 22 # Look for unit converter 23 23 has_converter = True 24 24 try: 25 from sas. data_util.nxsunit import Converter25 from sas.sascalc.data_util.nxsunit import Converter 26 26 except: 27 27 has_converter = False -
src/sas/sascalc/dataloader/readers/abs_reader.py
r79492222 rb699768 11 11 import numpy 12 12 import os 13 from sas. dataloader.data_info import Data1D14 from sas. dataloader.data_info import Detector13 from sas.sascalc.dataloader.data_info import Data1D 14 from sas.sascalc.dataloader.data_info import Detector 15 15 16 16 has_converter = True 17 17 try: 18 from sas. data_util.nxsunit import Converter18 from sas.sascalc.data_util.nxsunit import Converter 19 19 except: 20 20 has_converter = False -
src/sas/sascalc/dataloader/readers/ascii_reader.py
ref3445e2 rb699768 16 16 import numpy 17 17 import os 18 from sas. dataloader.data_info import Data1D18 from sas.sascalc.dataloader.data_info import Data1D 19 19 20 20 # Check whether we have a converter available 21 21 has_converter = True 22 22 try: 23 from sas. data_util.nxsunit import Converter23 from sas.sascalc.data_util.nxsunit import Converter 24 24 except: 25 25 has_converter = False -
src/sas/sascalc/dataloader/readers/cansas_reader.py
r5ce7f17 rb699768 20 20 import inspect 21 21 # For saving individual sections of data 22 from sas. dataloader.data_info import Data1D23 from sas. dataloader.data_info import Collimation24 from sas. dataloader.data_info import TransmissionSpectrum25 from sas. dataloader.data_info import Detector26 from sas. dataloader.data_info import Process27 from sas. dataloader.data_info import Aperture28 import sas. dataloader.readers.xml_reader as xml_reader29 from sas. dataloader.readers.xml_reader import XMLreader30 from sas. dataloader.readers.cansas_constants import CansasConstants22 from sas.sascalc.dataloader.data_info import Data1D 23 from sas.sascalc.dataloader.data_info import Collimation 24 from sas.sascalc.dataloader.data_info import TransmissionSpectrum 25 from sas.sascalc.dataloader.data_info import Detector 26 from sas.sascalc.dataloader.data_info import Process 27 from sas.sascalc.dataloader.data_info import Aperture 28 import sas.sascalc.dataloader.readers.xml_reader as xml_reader 29 from sas.sascalc.dataloader.readers.xml_reader import XMLreader 30 from sas.sascalc.dataloader.readers.cansas_constants import CansasConstants 31 31 32 32 # The following 2 imports *ARE* used. Do not remove either. … … 40 40 HAS_CONVERTER = True 41 41 try: 42 from sas. data_util.nxsunit import Converter42 from sas.sascalc.data_util.nxsunit import Converter 43 43 except ImportError: 44 44 HAS_CONVERTER = False -
src/sas/sascalc/dataloader/readers/danse_reader.py
rfd5ac0d rb699768 17 17 import numpy 18 18 import logging 19 from sas. dataloader.data_info import Data2D, Detector20 from sas. dataloader.manipulations import reader2D_converter19 from sas.sascalc.dataloader.data_info import Data2D, Detector 20 from sas.sascalc.dataloader.manipulations import reader2D_converter 21 21 22 22 # Look for unit converter 23 23 has_converter = True 24 24 try: 25 from sas. data_util.nxsunit import Converter25 from sas.sascalc.data_util.nxsunit import Converter 26 26 except: 27 27 has_converter = False -
src/sas/sascalc/dataloader/readers/hfir1d_reader.py
r79492222 rb699768 11 11 import numpy 12 12 import os 13 from sas. dataloader.data_info import Data1D13 from sas.sascalc.dataloader.data_info import Data1D 14 14 15 15 # Check whether we have a converter available 16 16 has_converter = True 17 17 try: 18 from sas. data_util.nxsunit import Converter18 from sas.sascalc.data_util.nxsunit import Converter 19 19 except: 20 20 has_converter = False -
src/sas/sascalc/dataloader/readers/nexus_reader.py
r79492222 rb699768 10 10 """ 11 11 import os 12 from sas. dataloader.data_info import Data2D12 from sas.sascalc.dataloader.data_info import Data2D 13 13 14 14 -
src/sas/sascalc/dataloader/readers/red2d_reader.py
r79492222 rb699768 12 12 import numpy 13 13 import math 14 from sas. dataloader.data_info import Data2D, Detector14 from sas.sascalc.dataloader.data_info import Data2D, Detector 15 15 16 16 # Look for unit converter 17 17 has_converter = True 18 18 try: 19 from sas. data_util.nxsunit import Converter19 from sas.sascalc.data_util.nxsunit import Converter 20 20 except: 21 21 has_converter = False -
src/sas/sascalc/dataloader/readers/sesans_reader.py
redfc8ac rb699768 8 8 import numpy 9 9 import os 10 from sas. dataloader.data_info import SESANSData1D10 from sas.sascalc.dataloader.data_info import SESANSData1D 11 11 12 12 # Check whether we have a converter available 13 13 has_converter = True 14 14 try: 15 from sas. data_util.nxsunit import Converter15 from sas.sascalc.data_util.nxsunit import Converter 16 16 except: 17 17 has_converter = False -
src/sas/sascalc/dataloader/readers/tiff_reader.py
r79492222 rb699768 14 14 import os 15 15 import numpy 16 from sas. dataloader.data_info import Data2D17 from sas. dataloader.manipulations import reader2D_converter16 from sas.sascalc.dataloader.data_info import Data2D 17 from sas.sascalc.dataloader.manipulations import reader2D_converter 18 18 19 19 class Reader: -
src/sas/sascalc/fit/AbstractFitEngine.py
r9f7fbd9 rb699768 6 6 import numpy 7 7 8 from sas. dataloader.data_info import Data1D9 from sas. dataloader.data_info import Data2D8 from sas.sascalc.dataloader.data_info import Data1D 9 from sas.sascalc.dataloader.data_info import Data2D 10 10 _SMALLVALUE = 1.0e-10 11 11 -
src/sas/sascalc/fit/BumpsFitting.py
r7945367 rb699768 28 28 29 29 30 from sas. fit.AbstractFitEngine import FitEngine31 from sas. fit.AbstractFitEngine import FResult32 from sas. fit.expression import compile_constraints30 from sas.sascalc.fit.AbstractFitEngine import FitEngine 31 from sas.sascalc.fit.AbstractFitEngine import FResult 32 from sas.sascalc.fit.expression import compile_constraints 33 33 34 34 class Progress(object): -
src/sas/sascalc/invariant/invariant.py
rc76bdc3 rb699768 19 19 import numpy 20 20 21 from sas. dataloader.data_info import Data1D as LoaderData1D21 from sas.sascalc.dataloader.data_info import Data1D as LoaderData1D 22 22 23 23 # The minimum q-value to be used when extrapolating -
src/sas/sascalc/pr/__init__.py
rb9a5f0e rb699768 53 53 # To create an inversion object: 54 54 # \verbatim 55 #from sas. pr.invertor import Invertor55 #from sas.sascalc.pr.invertor import Invertor 56 56 # invertor = Invertor() 57 57 # \endverbatim -
src/sas/sascalc/pr/c_extensions/Cinvertor.c
rb9a5f0e rb699768 1114 1114 1115 1115 d = PyModule_GetDict(module); 1116 CinvertorError = PyErr_NewException("sas. pr.invertor.Cinvertor.InvertorError", PyExc_RuntimeError, NULL);1116 CinvertorError = PyErr_NewException("sas.sascalc.pr.invertor.Cinvertor.InvertorError", PyExc_RuntimeError, NULL); 1117 1117 PyDict_SetItemString(d, "CinvertorError", CinvertorError); 1118 1118 } -
src/sas/sascalc/pr/distance_explorer.py
r038c00cf rb699768 51 51 Initialization. 52 52 53 :param pr_state: sas. pr.invertor.Invertor object53 :param pr_state: sas.sascalc.pr.invertor.Invertor object 54 54 55 55 """ -
src/sas/sascalc/pr/invertor.py
r3d250da3 rb699768 17 17 from numpy.linalg import lstsq 18 18 from scipy import optimize 19 from sas. pr.core.pr_inversion import Cinvertor19 from sas.sascalc.pr.core.pr_inversion import Cinvertor 20 20 21 21 def help(): -
src/sas/sascalc/pr/num_term.py
rc1bffa5 rb699768 4 4 import sys 5 5 import logging 6 from sas. pr.invertor import Invertor6 from sas.sascalc.pr.invertor import Invertor 7 7 8 8 class NTermEstimator(object):
Note: See TracChangeset
for help on using the changeset viewer.