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


Python XSDataExperimentalCondition.build方法代码示例

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


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

示例1: buildChildren

# 需要导入模块: from XSDataMXv1 import XSDataExperimentalCondition [as 别名]
# 或者: from XSDataMXv1.XSDataExperimentalCondition import build [as 别名]
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'experimentalCondition':
			obj_ = XSDataExperimentalCondition()
			obj_.build(child_)
			self.setExperimentalCondition(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'diffractionPlan':
			obj_ = XSDataDiffractionPlan()
			obj_.build(child_)
			self.setDiffractionPlan(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'sample':
			obj_ = XSDataSampleCrystalMM()
			obj_.build(child_)
			self.setSample(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'imagePath':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.imagePath.append(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'flux':
			obj_ = XSDataFloat()
			obj_.build(child_)
			self.setFlux(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'minExposureTimePerImage':
			obj_ = XSDataTime()
			obj_.build(child_)
			self.setMinExposureTimePerImage(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamSize':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setBeamSize(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamSizeX':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setBeamSizeX(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamSizeY':
			obj_ = XSDataLength()
			obj_.build(child_)
			self.setBeamSizeY(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'templateMode':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setTemplateMode(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'generatedTemplateFile':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setGeneratedTemplateFile(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'resultsFilePath':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setResultsFilePath(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamPosX':
			obj_ = XSDataFloat()
			obj_.build(child_)
			self.setBeamPosX(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beamPosY':
			obj_ = XSDataFloat()
			obj_.build(child_)
			self.setBeamPosY(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'wavelength':
			obj_ = XSDataWavelength()
			obj_.build(child_)
			self.setWavelength(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'transmission':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setTransmission(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'dataCollectionId':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setDataCollectionId(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'shortComments':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setShortComments(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'comments':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setComments(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'inputCharacterisation':
			obj_ = XSDataInputCharacterisation()
			obj_.build(child_)
#.........这里部分代码省略.........
开发者ID:antolinos,项目名称:edna,代码行数:103,代码来源:XSDataInterfacev1_2.py


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