當前位置: 首頁>>代碼示例>>Python>>正文


Python PythonAlgorithm.__init__方法代碼示例

本文整理匯總了Python中mantid.api.PythonAlgorithm.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python PythonAlgorithm.__init__方法的具體用法?Python PythonAlgorithm.__init__怎麽用?Python PythonAlgorithm.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mantid.api.PythonAlgorithm的用法示例。


在下文中一共展示了PythonAlgorithm.__init__方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
     self.instrument = None
開發者ID:mantidproject,項目名稱:mantid,代碼行數:9,代碼來源:LoadDNSLegacy.py

示例2: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 0.0
     self.wslist = []
開發者ID:mantidproject,項目名稱:mantid,代碼行數:9,代碼來源:CompareSampleLogs.py

示例3: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
    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,代碼行數:28,代碼來源:BASISReduction.py

示例4: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
    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,代碼行數:32,代碼來源:GSASIIRefineFitPeaks.py

示例5: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.input_workspaces = {}
     self.sf_outws_name = None
     self.nsf_outws_name = None
開發者ID:stuartcampbell,項目名稱:mantid,代碼行數:10,代碼來源:DNSFlippingRatioCorr.py

示例6: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace_names = []
     self.xaxis = '2theta'
     self.outws_name = None
開發者ID:dezed,項目名稱:mantid,代碼行數:10,代碼來源:DNSMergeRuns.py

示例7: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 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,代碼行數:12,代碼來源:DNSDetEffCorrVana.py

示例8: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 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,代碼行數:12,代碼來源:DNSMergeRuns.py

示例9: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.tolerance = 1e-2
開發者ID:dezed,項目名稱:mantid,代碼行數:8,代碼來源:LoadDNSLegacy.py

示例10: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
開發者ID:spaceyatom,項目名稱:mantid,代碼行數:7,代碼來源:TOFTOFConvertTofToDeltaE.py

示例11: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     PythonAlgorithm.__init__(self)
開發者ID:dezed,項目名稱:mantid,代碼行數:4,代碼來源:TOFTOFCropWorkspace.py

示例12: __init__

# 需要導入模塊: from mantid.api import PythonAlgorithm [as 別名]
# 或者: from mantid.api.PythonAlgorithm import __init__ [as 別名]
 def __init__(self):
     """
     Init
     """
     PythonAlgorithm.__init__(self)
     self.workspace = None
開發者ID:mducle,項目名稱:mantid,代碼行數:8,代碼來源:FindEPP.py


注:本文中的mantid.api.PythonAlgorithm.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。