本文整理匯總了Python中mantid.api.PythonAlgorithm類的典型用法代碼示例。如果您正苦於以下問題:Python PythonAlgorithm類的具體用法?Python PythonAlgorithm怎麽用?Python PythonAlgorithm使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了PythonAlgorithm類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.tolerance = 1e-2
self.instrument = None
示例2: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.tolerance = 0.0
self.wslist = []
示例3: __init__
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
示例4: __init__
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"
示例5: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.input_workspaces = {}
self.sf_outws_name = None
self.nsf_outws_name = None
示例6: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.workspace_names = []
self.xaxis = '2theta'
self.outws_name = None
示例7: __init__
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
示例8: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.workspace_names = []
self.wavelength = 0
self.xaxis = '2theta'
self.outws_name = None
self.is_normalized = False
示例9: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.tolerance = 1e-2
示例10: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
示例11: __init__
def __init__(self):
PythonAlgorithm.__init__(self)
示例12: __init__
def __init__(self):
"""
Init
"""
PythonAlgorithm.__init__(self)
self.workspace = None