本文整理汇总了Python中XSDataCommon.XSData.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python XSData.__init__方法的具体用法?Python XSData.__init__怎么用?Python XSData.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSDataCommon.XSData
的用法示例。
在下文中一共展示了XSData.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, plot=None):
XSData.__init__(self, )
if plot is None:
self.__plot = []
else:
checkType("XSDataPlotSet", "Constructor of XSDataPlotSet", plot, "list")
self.__plot = plot
示例2: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, atom=None):
XSData.__init__(self, )
if atom is None:
self.__atom = []
else:
checkType("XSDataAtomicComposition", "Constructor of XSDataAtomicComposition", atom, "list")
self.__atom = atom
示例3: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, removeItems=None, item=None):
XSData.__init__(self, )
if item is None:
self.__item = []
else:
checkType("XSDataQuery", "Constructor of XSDataQuery", item, "list")
self.__item = item
checkType("XSDataQuery", "Constructor of XSDataQuery", removeItems, "XSDataBoolean")
self.__removeItems = removeItems
示例4: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, integratedData=None, fileDirectory=None, fileName=None):
XSData.__init__(self, )
checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", fileName, "string")
self._fileName = fileName
checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", fileDirectory, "string")
self._fileDirectory = fileDirectory
checkType("XSDataGridScreeningResultIntegration", "Constructor of XSDataGridScreeningResultIntegration", integratedData, "string")
self._integratedData = integratedData
示例5: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, XSDataXDSRange=None, name_template_of_data_frames=None, data_range=None, background_range=None):
XSData.__init__(self, )
checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", background_range, "XSDataXDSRange")
self.__background_range = background_range
checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", data_range, "XSDataXDSRange")
self.__data_range = data_range
checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", name_template_of_data_frames, "XSDataString")
self.__name_template_of_data_frames = name_template_of_data_frames
checkType("XSDataXDSSubWedge", "Constructor of XSDataXDSSubWedge", XSDataXDSRange, "XSDataXDSRange")
self.__XSDataXDSRange = XSDataXDSRange
示例6: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, rMaxAbsTol=None, rMaxIntervals=None, rMaxStop=None, rMaxStart=None):
XSData.__init__(self, )
checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxStart, "XSDataDouble")
self._rMaxStart = rMaxStart
checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxStop, "XSDataDouble")
self._rMaxStop = rMaxStop
checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxIntervals, "XSDataInteger")
self._rMaxIntervals = rMaxIntervals
checkType("XSDataSolutionScatteringSettings", "Constructor of XSDataSolutionScatteringSettings", rMaxAbsTol, "XSDataDouble")
self._rMaxAbsTol = rMaxAbsTol
示例7: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, matrixU=None, matrixA=None):
XSData.__init__(self, )
if matrixA is None:
self._matrixA = None
elif matrixA.__class__.__name__ == "XSDataMatrixDouble":
self._matrixA = matrixA
else:
strMessage = "ERROR! XSDataXOalignOrientation constructor argument 'matrixA' is not XSDataMatrixDouble but %s" % self._matrixA.__class__.__name__
raise BaseException(strMessage)
if matrixU is None:
self._matrixU = None
elif matrixU.__class__.__name__ == "XSDataMatrixDouble":
self._matrixU = matrixU
else:
strMessage = "ERROR! XSDataXOalignOrientation constructor argument 'matrixU' is not XSDataMatrixDouble but %s" % self._matrixU.__class__.__name__
raise BaseException(strMessage)
示例8: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, axisData=None, long_name=None, units=None, primary=None, axis=None, title=None):
XSData.__init__(self, )
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", title, "XSDataString")
self._title = title
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", axis, "XSDataInteger")
self._axis = axis
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", primary, "XSDataInteger")
self._primary = primary
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", units, "XSDataString")
self._units = units
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", long_name, "XSDataString")
self._long_name = long_name
checkType("XSDataNexusAxis", "Constructor of XSDataNexusAxis", axisData, "XSDataArray")
self._axisData = axisData
示例9: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, labelitScreenSolution=None, selectedSolutionNumber=None, mosaicity=None, distance=None, beamCentreY=None, beamCentreX=None):
XSData.__init__(self, )
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", beamCentreX, "XSDataLength")
self.__beamCentreX = beamCentreX
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", beamCentreY, "XSDataLength")
self.__beamCentreY = beamCentreY
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", distance, "XSDataLength")
self.__distance = distance
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", mosaicity, "XSDataAngle")
self.__mosaicity = mosaicity
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", selectedSolutionNumber, "XSDataInteger")
self.__selectedSolutionNumber = selectedSolutionNumber
if labelitScreenSolution is None:
self.__labelitScreenSolution = []
else:
checkType("XSDataLabelitScreenOutput", "Constructor of XSDataLabelitScreenOutput", labelitScreenSolution, "XSDataLabelitScreenSolution")
self.__labelitScreenSolution = labelitScreenSolution
示例10: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, toN=None, fromN=None, templateN=None, dirN=None, idN=None):
XSData.__init__(self, )
if idN is None:
self._idN = None
elif idN.__class__.__name__ == "XSDataString":
self._idN = idN
else:
strMessage = "ERROR! XSDataAutoPROCIdentifier constructor argument 'idN' is not XSDataString but %s" % self._idN.__class__.__name__
raise BaseException(strMessage)
if dirN is None:
self._dirN = None
elif dirN.__class__.__name__ == "XSDataFile":
self._dirN = dirN
else:
strMessage = "ERROR! XSDataAutoPROCIdentifier constructor argument 'dirN' is not XSDataFile but %s" % self._dirN.__class__.__name__
raise BaseException(strMessage)
if templateN is None:
self._templateN = None
elif templateN.__class__.__name__ == "XSDataString":
self._templateN = templateN
else:
strMessage = "ERROR! XSDataAutoPROCIdentifier constructor argument 'templateN' is not XSDataString but %s" % self._templateN.__class__.__name__
raise BaseException(strMessage)
if fromN is None:
self._fromN = None
elif fromN.__class__.__name__ == "XSDataInteger":
self._fromN = fromN
else:
strMessage = "ERROR! XSDataAutoPROCIdentifier constructor argument 'fromN' is not XSDataInteger but %s" % self._fromN.__class__.__name__
raise BaseException(strMessage)
if toN is None:
self._toN = None
elif toN.__class__.__name__ == "XSDataInteger":
self._toN = toN
else:
strMessage = "ERROR! XSDataAutoPROCIdentifier constructor argument 'toN' is not XSDataInteger but %s" % self._toN.__class__.__name__
raise BaseException(strMessage)
示例11: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, scanId2=None, scanId1=None, motorPosition2=None, motorPosition1=None):
XSData.__init__(self, )
self.__motorPosition1 = motorPosition1
self.__motorPosition2 = motorPosition2
self.__scanId1 = scanId1
self.__scanId2 = scanId2
示例12: __init__
# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import __init__ [as 别名]
def __init__(self, b=None):
XSData.__init__(self, )
checkType("testBoolean", "Constructor of testBoolean", b, "XSDataBoolean")
self._b = b