コード例 #1
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
コード例 #2
0
ファイル: LoadDNSLegacy.py プロジェクト: mantidproject/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
     self.instrument = None
コード例 #3
0
    def __init__(self):
        PythonAlgorithm.__init__(self)

        # For the wsPython app underlying GSAS-II
        self._gsas2_app = None

        self.PROP_INPUT_WORKSPACE = 'InputWorkspace'
        self.PROP_WORKSPACE_INDEX = 'WorkspaceIndex'
        self.PROP_INSTR_FILE = 'InstrumentFile'
        self.PROP_PHASE_INFO_FILE = 'PhaseInfoFile'
        self.PROP_PATH_TO_GSASII = 'PathToGSASII'
        self.PROP_PAWLEY_DMIN = "PawleyDmin"
        self.PROP_PAWLEY_NEG_WEIGHT = "PawleyNegativeWeight"
        self.PROP_BACKGROUND_TYPE = 'BackgroundType'
        self.PROP_MINX = 'MinX'
        self.PROP_MAXX = 'MaxX'
        self.PROP_EXPECTED_PEAKS = "ExpectedPeaks"
        self.PROP_EXPECTED_PEAKS_FROM_FILE = "ExpectedPeaksFromFile"
        self.PROP_OUT_LATTICE_PARAMS = 'LatticeParameters'
        self.PROP_OUT_FITTED_PARAMS = 'FittedPeakParameters'
        self.PROP_OUT_PROJECT_FILE = 'SaveGSASIIProjectFile'
        self.PROP_OUT_GOF = 'GoF'
        self.PROP_OUT_RWP = 'Rwp'
        self.PROP_REFINE_CENTER = 'RefineCenter'
        self.PROP_REFINE_INTENSITY = 'RefineIntensity'
        self.PROP_REFINE_ALPHA = 'RefineAlpha'
        self.PROP_REFINE_BETA = 'RefineBeta'
        self.PROP_REFINE_SIGMA = 'RefineSigma'
        self.PROP_REFINE_GAMMA = 'RefineGamma'
        self.PROP_METHOD = "Method"
コード例 #4
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
コード例 #5
0
    def __init__(self):
        PythonAlgorithm.__init__(self)

        # For the wsPython app underlying GSAS-II
        self._gsas2_app = None

        self.PROP_INPUT_WORKSPACE = 'InputWorkspace'
        self.PROP_WORKSPACE_INDEX = 'WorkspaceIndex'
        self.PROP_INSTR_FILE = 'InstrumentFile'
        self.PROP_PHASE_INFO_FILE = 'PhaseInfoFile'
        self.PROP_PATH_TO_GSASII = 'PathToGSASII'
        self.PROP_PAWLEY_DMIN = "PawleyDmin"
        self.PROP_PAWLEY_NEG_WEIGHT = "PawleyNegativeWeight"
        self.PROP_BACKGROUND_TYPE = 'BackgroundType'
        self.PROP_MINX = 'MinX'
        self.PROP_MAXX = 'MaxX'
        self.PROP_EXPECTED_PEAKS = "ExpectedPeaks"
        self.PROP_EXPECTED_PEAKS_FROM_FILE = "ExpectedPeaksFromFile"
        self.PROP_OUT_LATTICE_PARAMS = 'LatticeParameters'
        self.PROP_OUT_FITTED_PARAMS = 'FittedPeakParameters'
        self.PROP_OUT_PROJECT_FILE = 'SaveGSASIIProjectFile'
        self.PROP_OUT_GOF = 'GoF'
        self.PROP_OUT_RWP = 'Rwp'
        self.PROP_REFINE_CENTER = 'RefineCenter'
        self.PROP_REFINE_INTENSITY = 'RefineIntensity'
        self.PROP_REFINE_ALPHA = 'RefineAlpha'
        self.PROP_REFINE_BETA = 'RefineBeta'
        self.PROP_REFINE_SIGMA = 'RefineSigma'
        self.PROP_REFINE_GAMMA = 'RefineGamma'
        self.PROP_METHOD = "Method"
コード例 #6
0
    def __init__(self):
        PythonAlgorithm.__init__(self)
        self._normalizeToFirst = False
        self._as_json = None

        # properties related to monitor
        self._MonNorm = None

        # properties related to the chosen reflection
        self._reflection = None  # entry in the reflections dictionary
        self._etBins = None
        self._qBins = None
        self._maskFile = None

        # properties related to division by Vanadium (normalization)
        self._doNorm = None  # stores the selected item from normalization_types
        self._normalizationType = None
        self._normRange = None
        self._norm_run_list = None
        self._normWs = None
        self._normMonWs = None

        # properties related to saving NSXPE file
        self._nsxpe_do = False
        self._nxspe_psi_angle_log = None
        self._nxspe_offset = 0.0
コード例 #7
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
     self.instrument = None
コード例 #8
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
コード例 #9
0
ファイル: DNSMergeRuns.py プロジェクト: dezed/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
コード例 #10
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
コード例 #11
0
ファイル: DNSMergeRuns.py プロジェクト: yutiansut/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
コード例 #12
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.vanaws = None
     self.defaultT = 293.0       # K, default temperature if not given
     self.Mvan = 50.942          # [g/mol], Vanadium molar mass
     self.DebyeT = 389.0         # K, Debye temperature for Vanadium
コード例 #13
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.vanaws = None
     self.defaultT = 293.0  # K, default temperature if not given
     self.Mvan = 50.942  # [g/mol], Vanadium molar mass
     self.DebyeT = 389.0  # K, Debye temperature for Vanadium
コード例 #14
0
ファイル: DNSDetEffCorrVana.py プロジェクト: stothe2/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.dataws = None
     self.outws_name = None
     self.vanaws = None
     self.bkgws = None
     self.vana_mean_name = None
コード例 #15
0
ファイル: DNSMergeRuns.py プロジェクト: stothe2/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.wavelength = 0
     self.xaxis = '2theta'
     self.outws_name = None
     self.is_normalized = False
コード例 #16
0
ファイル: BASISReduction.py プロジェクト: NickDraper/mantid
    def __init__(self):
        PythonAlgorithm.__init__(self)
        self._normalizeToFirst = False

        # properties related to monitor
        self._noMonNorm = None

        # properties related to the chosen reflection
        self._reflection = None  # entry in the reflections dictionary
        self._etBins = None
        self._qBins = None
        self._maskFile = None

        # properties related to division by Vanadium (normalization)
        self._doNorm = None  # stores the selected item from normalization_types
        self._normalizationType = None
        self._normRange = None
        self._norm_run_list = None
        self._normWs = None
        self._normMonWs = None
コード例 #17
0
ファイル: BASISReduction.py プロジェクト: OwenArnold/mantid
    def __init__(self):
        PythonAlgorithm.__init__(self)
        self._normalizeToFirst = False
        self._as_json = None
        self._temps = None  # hold names of temporary workspaces and files
        self.remove_temp = None  # set to true to keep temporary workspaces

        # properties related to the sample
        self._samWs = None  # name of the sample events file

        # properties related to flux normalization
        self._flux_normalization_type = None  # default to no flux normalizat.
        self._MonNorm = False  # flux normalization by monitor

        # properties related to the chosen reflection
        self._reflection = None  # entry in the reflections dictionary
        self._etBins = None
        self._qBins = None

        # properties related to the mask
        self._maskFile = None
        self._dMask = None  # list of masked detectors
        self._maskWs = None  # name of the mask workspace

        # properties related to division by Vanadium (normalization)
        self._doNorm = None  # stores the selected item from normalization_types
        self._normalizationType = None
        self._normRange = None
        self._norm_run_list = None
        self._normWs = None
        self._normMonWs = None
        self._normMask = None  # name of vanadium mask workspace

        # properties related to saving NSXPE file
        self._nsxpe_do = False
        self._nxspe_psi_angle_log = None
        self._nxspe_offset = 0.0
コード例 #18
0
ファイル: LoadDNSLegacy.py プロジェクト: dezed/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
コード例 #19
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.toremove = []
コード例 #20
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
コード例 #21
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
コード例 #22
0
ファイル: TOFTOFCropWorkspace.py プロジェクト: dezed/mantid
 def __init__(self):
     PythonAlgorithm.__init__(self)
コード例 #23
0
 def __init__(self):
     PythonAlgorithm.__init__(self)
コード例 #24
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.toremove = []
コード例 #25
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None
コード例 #26
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
コード例 #27
0
ファイル: FindEPP.py プロジェクト: mducle/mantid
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None