当前位置: 首页>>代码示例>>Python>>正文


Python api.PythonAlgorithm类代码示例

本文整理汇总了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
开发者ID:mantidproject,项目名称:mantid,代码行数:7,代码来源:LoadDNSLegacy.py

示例2: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
开发者ID:mantidproject,项目名称:mantid,代码行数:7,代码来源:CompareSampleLogs.py

示例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
开发者ID:DanNixon,项目名称:mantid,代码行数:26,代码来源:BASISReduction.py

示例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"
开发者ID:liyulun,项目名称:mantid,代码行数:30,代码来源:GSASIIRefineFitPeaks.py

示例5: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
开发者ID:stuartcampbell,项目名称:mantid,代码行数:8,代码来源:DNSFlippingRatioCorr.py

示例6: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
开发者ID:dezed,项目名称:mantid,代码行数:8,代码来源:DNSMergeRuns.py

示例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
开发者ID:stothe2,项目名称:mantid,代码行数:10,代码来源:DNSDetEffCorrVana.py

示例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
开发者ID:stothe2,项目名称:mantid,代码行数:10,代码来源:DNSMergeRuns.py

示例9: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
开发者ID:dezed,项目名称:mantid,代码行数:6,代码来源:LoadDNSLegacy.py

示例10: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
开发者ID:spaceyatom,项目名称:mantid,代码行数:5,代码来源:TOFTOFConvertTofToDeltaE.py

示例11: __init__

 def __init__(self):
     PythonAlgorithm.__init__(self)
开发者ID:dezed,项目名称:mantid,代码行数:2,代码来源:TOFTOFCropWorkspace.py

示例12: __init__

 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None
开发者ID:mducle,项目名称:mantid,代码行数:6,代码来源:FindEPP.py


注:本文中的mantid.api.PythonAlgorithm类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。