def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
Example #2
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
     self.instrument = None
Example #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"
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
Example #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"
Example #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
Example #7
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
     self.instrument = None
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
Example #9
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
Example #10
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
Example #11
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
Example #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
Example #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
Example #14
0
 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
Example #15
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.wavelength = 0
     self.xaxis = '2theta'
     self.outws_name = None
     self.is_normalized = False
Example #16
0
    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
Example #17
0
    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
Example #18
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.toremove = []
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
Example #21
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
Example #22
0
 def __init__(self):
     PythonAlgorithm.__init__(self)
Example #23
0
 def __init__(self):
     PythonAlgorithm.__init__(self)
Example #24
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.toremove = []
Example #25
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None
Example #26
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
Example #27
0
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None