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


Python XSData.buildChildren方法代码示例

本文整理汇总了Python中XSDataCommon.XSData.buildChildren方法的典型用法代码示例。如果您正苦于以下问题:Python XSData.buildChildren方法的具体用法?Python XSData.buildChildren怎么用?Python XSData.buildChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XSDataCommon.XSData的用法示例。


在下文中一共展示了XSData.buildChildren方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'angle_alpha':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setAngle_alpha(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'angle_beta':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setAngle_beta(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'angle_gamma':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setAngle_gamma(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'length_a':
         obj_ = XSDataLength()
         obj_.build(child_)
         self.setLength_a(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'length_b':
         obj_ = XSDataLength()
         obj_.build(child_)
         self.setLength_b(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'length_c':
         obj_ = XSDataLength()
         obj_.build(child_)
         self.setLength_c(obj_)
     XSData.buildChildren(self, child_, nodeName_)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:34,代码来源:XSDataXOalignv1_0.py

示例2: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'title':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setTitle(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'long_name':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setLong_name(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'axis':
			obj_ = XSDataNexusAxis()
			obj_.build(child_)
			self.axis.append(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'data':
			obj_ = XSDataArray()
			obj_.build(child_)
			self.setData(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'signal':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setSignal(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:edna-site,项目名称:edna,代码行数:29,代码来源:XSDataWriteNexusFilev1_0.py

示例3: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'b':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setB(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:antolinos,项目名称:edna,代码行数:9,代码来源:bug852.py

示例4: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'plot':
			obj_ = XSDataPlot()
			obj_.build(child_)
			self.plot.append(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:antolinos,项目名称:edna,代码行数:9,代码来源:XSDataPlotGlev1_0.py

示例5: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamCentreX':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setBeamCentreX(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamCentreY':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setBeamCentreY(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'distance':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setDistance(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'mosaicity':
			obj_ = XSDataAngle()
			obj_.build(child_)
			self.setMosaicity(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'selectedSolutionNumber':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setSelectedSolutionNumber(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'labelitScreenSolution':
			obj_ = XSDataLabelitScreenSolution()
			obj_.build(child_)
			self.labelitScreenSolution.append(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:antolinos,项目名称:edna,代码行数:34,代码来源:XSDataLabelitv10.py

示例6: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'idN':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setIdN(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dirN':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setDirN(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'templateN':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setTemplateN(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fromN':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setFromN(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'toN':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setToN(obj_)
     XSData.buildChildren(self, child_, nodeName_)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:29,代码来源:XSDataAutoPROCv1_0.py

示例7: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'atom':
			obj_ = XSDataAtom()
			obj_.build(child_)
			self.atom.append(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:9,代码来源:XSDataRaddosev10.py

示例8: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'detector_name':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setDetector_name(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'image_format':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setImage_format(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'nx':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setNx(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'ny':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setNy(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'qx':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setQx(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'qy':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setQy(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:34,代码来源:XSDataXDSv1_1.py

示例9: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'item':
			obj_ = XSDataString()
			obj_.build(child_)
			self.item.append(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'removeItems':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setRemoveItems(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:olofsvensson,项目名称:edna-plugins-exec,代码行数:14,代码来源:XSDataAccumulatorv1_0.py

示例10: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'motorPosition1':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setMotorPosition1(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'motorPosition2':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setMotorPosition2(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'scanId1':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setScanId1(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'scanId2':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setScanId2(obj_)
		XSData.buildChildren(self, child_, nodeName_)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:24,代码来源:XSDataGridScreeningv1_0.py

示例11: buildChildren

# 需要导入模块: from XSDataCommon import XSData [as 别名]
# 或者: from XSDataCommon.XSData import buildChildren [as 别名]
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'rMaxStart':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setRMaxStart(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'rMaxStop':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setRMaxStop(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'rMaxIntervals':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setRMaxIntervals(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'rMaxAbsTol':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setRMaxAbsTol(obj_)
     XSData.buildChildren(self, child_, nodeName_)
开发者ID:antolinos,项目名称:BsxCuBE,代码行数:24,代码来源:XSDataSAS.py


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