Exemplo n.º 1
0
	def __init__(self, configuration=None, numberOfImages=None, crystalSize=None, crystalSATM=None, crystalPATM=None, crystalNRNA=None, crystalNRES=None, crystalNMON=None, crystalNDNA=None, crystalCell=None, beamWavelength=None, beamSize=None, beamFlux=None, beamExposureTime=None):
		XSDataInput.__init__(self, configuration)
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", beamExposureTime, "XSDataTime")
		self.__beamExposureTime = beamExposureTime
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", beamFlux, "XSDataFlux")
		self.__beamFlux = beamFlux
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", beamSize, "XSDataSize")
		self.__beamSize = beamSize
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", beamWavelength, "XSDataWavelength")
		self.__beamWavelength = beamWavelength
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalCell, "XSDataCell")
		self.__crystalCell = crystalCell
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalNDNA, "XSDataInteger")
		self.__crystalNDNA = crystalNDNA
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalNMON, "XSDataInteger")
		self.__crystalNMON = crystalNMON
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalNRES, "XSDataInteger")
		self.__crystalNRES = crystalNRES
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalNRNA, "XSDataInteger")
		self.__crystalNRNA = crystalNRNA
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalPATM, "XSDataAtomicComposition")
		self.__crystalPATM = crystalPATM
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalSATM, "XSDataAtomicComposition")
		self.__crystalSATM = crystalSATM
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", crystalSize, "XSDataSize")
		self.__crystalSize = crystalSize
		checkType("XSDataRaddoseInput", "Constructor of XSDataRaddoseInput", numberOfImages, "XSDataInteger")
		self.__numberOfImages = numberOfImages
Exemplo n.º 2
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'inputMatrixFile':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setInputMatrixFile(obj_)
		XSDataInput.buildChildren(self, child_, nodeName_)
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'image':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.image.append(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 4
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'nexusFileName':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setNexusFileName(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'instrument':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setInstrument(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'energy':
			obj_ = XSDataArray()
			obj_.build(child_)
			self.setEnergy(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'dataArray':
			obj_ = XSDataArray()
			obj_.build(child_)
			self.setDataArray(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'pathToEnergyArray':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setPathToEnergyArray(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'pathToDataArray':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setPathToDataArray(obj_)
		XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 5
0
	def __init__(self, configuration=None, resultsXmlFile=None, resultsFile=None, bScaleIntensityGleFile=None, bScaleIntensityMtvPlotFile=None, bFactorGlePlotFile=None, bFactorMtvplotFile=None, defaultGama=None, defaultBeta=None, dmin=None, xdsHklFile=None, bestXmlFile=None):
		XSDataInput.__init__(self, configuration)
	
	
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", bestXmlFile, "XSDataFile")
		self._bestXmlFile = bestXmlFile
		if xdsHklFile is None:
			self._xdsHklFile = []
		else:
			checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", xdsHklFile, "list")
			self._xdsHklFile = xdsHklFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", dmin, "XSDataDouble")
		self._dmin = dmin
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", defaultBeta, "XSDataDouble")
		self._defaultBeta = defaultBeta
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", defaultGama, "XSDataDouble")
		self._defaultGama = defaultGama
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", bFactorMtvplotFile, "XSDataFile")
		self._bFactorMtvplotFile = bFactorMtvplotFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", bFactorGlePlotFile, "XSDataFile")
		self._bFactorGlePlotFile = bFactorGlePlotFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", bScaleIntensityMtvPlotFile, "XSDataFile")
		self._bScaleIntensityMtvPlotFile = bScaleIntensityMtvPlotFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", bScaleIntensityGleFile, "XSDataFile")
		self._bScaleIntensityGleFile = bScaleIntensityGleFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", resultsFile, "XSDataFile")
		self._resultsFile = resultsFile
		checkType("XSDataInputRdfit", "Constructor of XSDataInputRdfit", resultsXmlFile, "XSDataFile")
		self._resultsXmlFile = resultsXmlFile
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'imageFile':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setImageFile(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_ == 'storeImageQualityIndicatorsInISPyB':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setStoreImageQualityIndicatorsInISPyB(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'doOnlyImageQualityIndicators':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setDoOnlyImageQualityIndicators(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'doOnlyIntegrationWithXMLOutput':
			obj_ = XSDataBoolean()
			obj_.build(child_)
			self.setDoOnlyIntegrationWithXMLOutput(obj_)
		XSDataInput.buildChildren(self, child_, nodeName_)
 def __init__(self, configuration=None, format=None, waitForFileTimeOut=None, forcedOutputDirectory=None, diffractionImage=None):
     XSDataInput.__init__(self, configuration)
     if diffractionImage is None:
         self._diffractionImage = []
     elif diffractionImage.__class__.__name__ == "list":
         self._diffractionImage = diffractionImage
     else:
         strMessage = "ERROR! XSDataInputPyarchThumbnailGeneratorParallel constructor argument 'diffractionImage' is not list but %s" % self._diffractionImage.__class__.__name__
         raise BaseException(strMessage)
     if forcedOutputDirectory is None:
         self._forcedOutputDirectory = None
     elif forcedOutputDirectory.__class__.__name__ == "XSDataFile":
         self._forcedOutputDirectory = forcedOutputDirectory
     else:
         strMessage = "ERROR! XSDataInputPyarchThumbnailGeneratorParallel constructor argument 'forcedOutputDirectory' is not XSDataFile but %s" % self._forcedOutputDirectory.__class__.__name__
         raise BaseException(strMessage)
     if waitForFileTimeOut is None:
         self._waitForFileTimeOut = None
     elif waitForFileTimeOut.__class__.__name__ == "XSDataTime":
         self._waitForFileTimeOut = waitForFileTimeOut
     else:
         strMessage = "ERROR! XSDataInputPyarchThumbnailGeneratorParallel constructor argument 'waitForFileTimeOut' is not XSDataTime but %s" % self._waitForFileTimeOut.__class__.__name__
         raise BaseException(strMessage)
     if format is None:
         self._format = None
     elif format.__class__.__name__ == "XSDataString":
         self._format = format
     else:
         strMessage = "ERROR! XSDataInputPyarchThumbnailGeneratorParallel constructor argument 'format' is not XSDataString but %s" % self._format.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 8
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'docPath':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setDocPath(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'sources':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.sources.append(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'docType':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setDocType(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'verbosity':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setVerbosity(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'projectName':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setProjectName(obj_)
		XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 9
0
	def __init__(self, configuration=None, flatScaleFactor=None, darkScaleFactor=None, dataScaleFactor=None, output=None, flat=None, dark=None, data=None):
		XSDataInput.__init__(self, configuration)
		if data is None:
			self.__data = []
		else:
			checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", data, "list")
			self.__data = data
		if dark is None:
			self.__dark = []
		else:
			checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", dark, "list")
			self.__dark = dark
		if flat is None:
			self.__flat = []
		else:
			checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", flat, "list")
			self.__flat = flat
		checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", output, "XSDataImageExt")
		self.__output = output
		checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", dataScaleFactor, "XSDataDouble")
		self.__dataScaleFactor = dataScaleFactor
		checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", darkScaleFactor, "XSDataDouble")
		self.__darkScaleFactor = darkScaleFactor
		checkType("XSDataInputNormalize", "Constructor of XSDataInputNormalize", flatScaleFactor, "XSDataDouble")
		self.__flatScaleFactor = flatScaleFactor
Exemplo n.º 10
0
 def __init__(self, configuration=None, lowQuality=None, paperSize=None, resultDirectory=None, htmlFile=None):
     XSDataInput.__init__(self, configuration)
     if htmlFile is None:
         self._htmlFile = []
     elif htmlFile.__class__.__name__ == "list":
         self._htmlFile = htmlFile
     else:
         strMessage = "ERROR! XSDataInputHTML2PDF constructor argument 'htmlFile' is not list but %s" % self._htmlFile.__class__.__name__
         raise BaseException(strMessage)
     if resultDirectory is None:
         self._resultDirectory = None
     elif resultDirectory.__class__.__name__ == "XSDataFile":
         self._resultDirectory = resultDirectory
     else:
         strMessage = "ERROR! XSDataInputHTML2PDF constructor argument 'resultDirectory' is not XSDataFile but %s" % self._resultDirectory.__class__.__name__
         raise BaseException(strMessage)
     if paperSize is None:
         self._paperSize = None
     elif paperSize.__class__.__name__ == "XSDataString":
         self._paperSize = paperSize
     else:
         strMessage = "ERROR! XSDataInputHTML2PDF constructor argument 'paperSize' is not XSDataString but %s" % self._paperSize.__class__.__name__
         raise BaseException(strMessage)
     if lowQuality is None:
         self._lowQuality = None
     elif lowQuality.__class__.__name__ == "XSDataBoolean":
         self._lowQuality = lowQuality
     else:
         strMessage = "ERROR! XSDataInputHTML2PDF constructor argument 'lowQuality' is not XSDataBoolean but %s" % self._lowQuality.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 11
0
 def exportChildren(self, outfile, level, name_='XSDataInputXdsBurnStrategy'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._input_file is not None:
         self.input_file.export(outfile, level, name_='input_file')
     else:
         warnEmptyAttribute("input_file", "XSDataString")
     if self._space_group is not None:
         self.space_group.export(outfile, level, name_='space_group')
     else:
         warnEmptyAttribute("space_group", "XSDataInteger")
     if self._unit_cell_a is not None:
         self.unit_cell_a.export(outfile, level, name_='unit_cell_a')
     else:
         warnEmptyAttribute("unit_cell_a", "XSDataDouble")
     if self._unit_cell_b is not None:
         self.unit_cell_b.export(outfile, level, name_='unit_cell_b')
     else:
         warnEmptyAttribute("unit_cell_b", "XSDataDouble")
     if self._unit_cell_c is not None:
         self.unit_cell_c.export(outfile, level, name_='unit_cell_c')
     else:
         warnEmptyAttribute("unit_cell_c", "XSDataDouble")
     if self._unit_cell_alpha is not None:
         self.unit_cell_alpha.export(outfile, level, name_='unit_cell_alpha')
     else:
         warnEmptyAttribute("unit_cell_alpha", "XSDataDouble")
     if self._unit_cell_beta is not None:
         self.unit_cell_beta.export(outfile, level, name_='unit_cell_beta')
     else:
         warnEmptyAttribute("unit_cell_beta", "XSDataDouble")
     if self._unit_cell_gamma is not None:
         self.unit_cell_gamma.export(outfile, level, name_='unit_cell_gamma')
     else:
         warnEmptyAttribute("unit_cell_gamma", "XSDataDouble")
 def exportChildren(self, outfile, level, name_='XSDataInputControlCrystFEL'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile, level, name_='dataCollectionId')
     if self._processDirectory is not None:
         self.processDirectory.export(outfile, level, name_='processDirectory')
     if self._geomFile is not None:
         self.geomFile.export(outfile, level, name_='geomFile')
     else:
         warnEmptyAttribute("geomFile", "XSDataString")
     if self._cellFile is not None:
         self.cellFile.export(outfile, level, name_='cellFile')
     else:
         warnEmptyAttribute("cellFile", "XSDataString")
     if self._imagesFullPath is not None:
         self.imagesFullPath.export(outfile, level, name_='imagesFullPath')
     else:
         warnEmptyAttribute("imagesFullPath", "XSDataString")
     if self._streamFile is not None:
         self.streamFile.export(outfile, level, name_='streamFile')
     else:
         warnEmptyAttribute("streamFile", "XSDataString")
     if self._hklFile is not None:
         self.hklFile.export(outfile, level, name_='hklFile')
     else:
         warnEmptyAttribute("hklFile", "XSDataString")
     if self._mtzFile is not None:
         self.mtzFile.export(outfile, level, name_='mtzFile')
     else:
         warnEmptyAttribute("mtzFile", "XSDataString")
Exemplo n.º 13
0
	def __init__(self, configuration=None, image=None):
		XSDataInput.__init__(self, configuration)
		if image is None:
			self.__image = []
		else:
			checkType("XSDataInputLabelit", "Constructor of XSDataInputLabelit", image, "XSDataImage")
			self.__image = image
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'characterisationResult':
			obj_ = XSDataResultCharacterisation()
			obj_.build(child_)
			self.setCharacterisationResult(obj_)
		XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 15
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "commandLineOptions":
         obj_ = XSDataString()
         obj_.build(child_)
         self.setCommandLineOptions(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "commandLineProgram":
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setCommandLineProgram(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "fireAndForget":
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setFireAndForget(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "inputFileName":
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setInputFileName(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "inputFileType":
         obj_ = XSDataString()
         obj_.build(child_)
         self.setInputFileType(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "outfileFromStdout":
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setOutfileFromStdout(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and nodeName_ == "outputPath":
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputPath(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
 def __init__(self, configuration=None, logFile=None, helicalDistance=None, fileGraph=None, characterisationResult=None):
     XSDataInput.__init__(self, configuration)
     if characterisationResult is None:
         self._characterisationResult = None
     elif characterisationResult.__class__.__name__ == "XSDataResultCharacterisation":
         self._characterisationResult = characterisationResult
     else:
         strMessage = "ERROR! XSDataInputSimpleHTMLPage constructor argument 'characterisationResult' is not XSDataResultCharacterisation but %s" % self._characterisationResult.__class__.__name__
         raise BaseException(strMessage)
     if fileGraph is None:
         self._fileGraph = []
     elif fileGraph.__class__.__name__ == "list":
         self._fileGraph = fileGraph
     else:
         strMessage = "ERROR! XSDataInputSimpleHTMLPage constructor argument 'fileGraph' is not list but %s" % self._fileGraph.__class__.__name__
         raise BaseException(strMessage)
     if helicalDistance is None:
         self._helicalDistance = None
     elif helicalDistance.__class__.__name__ == "XSDataDouble":
         self._helicalDistance = helicalDistance
     else:
         strMessage = "ERROR! XSDataInputSimpleHTMLPage constructor argument 'helicalDistance' is not XSDataDouble but %s" % self._helicalDistance.__class__.__name__
         raise BaseException(strMessage)
     if logFile is None:
         self._logFile = None
     elif logFile.__class__.__name__ == "XSDataFile":
         self._logFile = logFile
     else:
         strMessage = "ERROR! XSDataInputSimpleHTMLPage constructor argument 'logFile' is not XSDataFile but %s" % self._logFile.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 17
0
	def exportChildren(self, outfile, level, name_='XSDataInputPeakSearch'):
		XSDataInput.exportChildren(self, outfile, level, name_)
		if self.__darkFile is not None:
			self.darkFile.export(outfile, level, name_='darkFile')
		if self.__imageFormat is not None:
			self.imageFormat.export(outfile, level, name_='imageFormat')
		if self.__indexMax is not None:
			self.indexMax.export(outfile, level, name_='indexMax')
		else:
			warnEmptyAttribute("indexMax", "XSDataInteger")
		if self.__indexMin is not None:
			self.indexMin.export(outfile, level, name_='indexMin')
		else:
			warnEmptyAttribute("indexMin", "XSDataInteger")
		if self.__numberOfDigits is not None:
			self.numberOfDigits.export(outfile, level, name_='numberOfDigits')
		if self.__outputStem is not None:
			self.outputStem.export(outfile, level, name_='outputStem')
		if self.__stem is not None:
			self.stem.export(outfile, level, name_='stem')
		else:
			warnEmptyAttribute("stem", "XSDataString")
		for threshold_ in self.getThreshold():
			threshold_.export(outfile, level, name_='threshold')
		if self.getThreshold() == []:
			warnEmptyAttribute("threshold", "XSDataDouble")
Exemplo n.º 18
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'identifier':
         obj_ = XSDataAutoPROCIdentifier()
         obj_.build(child_)
         self.identifier.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'lowResolutionLimit':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setLowResolutionLimit(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'highResolutionLimit':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setHighResolutionLimit(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'anomalous':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setAnomalous(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'refMTZ':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setRefMTZ(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'masterH5':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setMasterH5(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 19
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'image':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setImage(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'height':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setHeight(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'width':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setWidth(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'outputPath':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputPath(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'format':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setFormat(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 20
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'symmetry':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setSymmetry(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'orientation':
         obj_ = XSDataXOalignOrientation()
         obj_.build(child_)
         self.setOrientation(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'cell':
         obj_ = XSDataXOalignCell()
         obj_.build(child_)
         self.setCell(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'omega':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setOmega(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'kappa':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setKappa(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'phi':
         obj_ = XSDataAngle()
         obj_.build(child_)
         self.setPhi(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 21
0
 def exportChildren(self, outfile, level, name_='XSDataInputRdfit'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._bestXmlFile is not None:
         self.bestXmlFile.export(outfile, level, name_='bestXmlFile')
     else:
         warnEmptyAttribute("bestXmlFile", "XSDataFile")
     for xdsHklFile_ in self.getXdsHklFile():
         xdsHklFile_.export(outfile, level, name_='xdsHklFile')
     if self.getXdsHklFile() == []:
         warnEmptyAttribute("xdsHklFile", "XSDataFile")
     if self._dmin is not None:
         self.dmin.export(outfile, level, name_='dmin')
     if self._defaultBeta is not None:
         self.defaultBeta.export(outfile, level, name_='defaultBeta')
     if self._defaultGama is not None:
         self.defaultGama.export(outfile, level, name_='defaultGama')
     if self._bFactorMtvplotFile is not None:
         self.bFactorMtvplotFile.export(outfile, level, name_='bFactorMtvplotFile')
     if self._bFactorGlePlotFile is not None:
         self.bFactorGlePlotFile.export(outfile, level, name_='bFactorGlePlotFile')
     if self._bScaleIntensityMtvPlotFile is not None:
         self.bScaleIntensityMtvPlotFile.export(outfile, level, name_='bScaleIntensityMtvPlotFile')
     if self._bScaleIntensityGleFile is not None:
         self.bScaleIntensityGleFile.export(outfile, level, name_='bScaleIntensityGleFile')
     if self._resultsFile is not None:
         self.resultsFile.export(outfile, level, name_='resultsFile')
     if self._resultsXmlFile is not None:
         self.resultsXmlFile.export(outfile, level, name_='resultsXmlFile')
Exemplo n.º 22
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'image':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setImage(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'startImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setStartImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'endImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setEndImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'anomalous':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setAnomalous(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'spacegroup':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setSpacegroup(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 23
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'data':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setData(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 24
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dataCollectionId':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setDataCollectionId(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'processDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setProcessDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'doAnomAndNonanom':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setDoAnomAndNonanom(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'hdf5ToCbfDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setHdf5ToCbfDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'spaceGroup':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setSpaceGroup(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'unitCell':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setUnitCell(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
 def __init__(self, configuration=None, doAnomAndNonanom=None, processDirectory=None, dataCollectionId=None):
     XSDataInput.__init__(self, configuration)
     if dataCollectionId is None:
         self._dataCollectionId = None
     elif dataCollectionId.__class__.__name__ == "XSDataInteger":
         self._dataCollectionId = dataCollectionId
     else:
         strMessage = (
             "ERROR! XSDataInputControlXia2DIALS constructor argument 'dataCollectionId' is not XSDataInteger but %s"
             % self._dataCollectionId.__class__.__name__
         )
         raise BaseException(strMessage)
     if processDirectory is None:
         self._processDirectory = None
     elif processDirectory.__class__.__name__ == "XSDataFile":
         self._processDirectory = processDirectory
     else:
         strMessage = (
             "ERROR! XSDataInputControlXia2DIALS constructor argument 'processDirectory' is not XSDataFile but %s"
             % self._processDirectory.__class__.__name__
         )
         raise BaseException(strMessage)
     if doAnomAndNonanom is None:
         self._doAnomAndNonanom = None
     elif doAnomAndNonanom.__class__.__name__ == "XSDataBoolean":
         self._doAnomAndNonanom = doAnomAndNonanom
     else:
         strMessage = (
             "ERROR! XSDataInputControlXia2DIALS constructor argument 'doAnomAndNonanom' is not XSDataBoolean but %s"
             % self._doAnomAndNonanom.__class__.__name__
         )
         raise BaseException(strMessage)
Exemplo n.º 26
0
 def exportChildren(self, outfile, level, name_='XSDataInputXia2DIALS'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     for image_ in self.getImage():
         image_.export(outfile, level, name_='image')
     if self.getImage() == []:
         warnEmptyAttribute("image", "XSDataFile")
     if self._anomalous is not None:
         self.anomalous.export(outfile, level, name_='anomalous')
 def exportChildren(self, outfile, level, name_="XSDataInputControlXia2DIALS"):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile, level, name_="dataCollectionId")
     if self._processDirectory is not None:
         self.processDirectory.export(outfile, level, name_="processDirectory")
     if self._doAnomAndNonanom is not None:
         self.doAnomAndNonanom.export(outfile, level, name_="doAnomAndNonanom")
Exemplo n.º 28
0
 def __init__(self, configuration=None, destination=None, source=None, options=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputRsync", "Constructor of XSDataInputRsync", options, "XSDataString")
     self.__options = options
     checkType("XSDataInputRsync", "Constructor of XSDataInputRsync", source, "XSDataFile")
     self.__source = source
     checkType("XSDataInputRsync", "Constructor of XSDataInputRsync", destination, "XSDataFile")
     self.__destination = destination
Exemplo n.º 29
0
	def __init__(self, configuration=None, timeOut=None, expectedSize=None, expectedFile=None):
		XSDataInput.__init__(self, configuration)
		checkType("XSDataInputWaitFile", "Constructor of XSDataInputWaitFile", expectedFile, "XSDataFile")
		self.__expectedFile = expectedFile
		checkType("XSDataInputWaitFile", "Constructor of XSDataInputWaitFile", expectedSize, "XSDataInteger")
		self.__expectedSize = expectedSize
		checkType("XSDataInputWaitFile", "Constructor of XSDataInputWaitFile", timeOut, "XSDataTime")
		self.__timeOut = timeOut
	def exportChildren(self, outfile, level, name_='XSDataInputAccumulator'):
		XSDataInput.exportChildren(self, outfile, level, name_)
		if self.__flush is not None:
			self.flush.export(outfile, level, name_='flush')
		for item_ in self.getItem():
			item_.export(outfile, level, name_='item')
		for query_ in self.getQuery():
			query_.export(outfile, level, name_='query')
Exemplo n.º 31
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataInputSimpleHTMLPage'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._characterisationResult is not None:
         self.characterisationResult.export(outfile,
                                            level,
                                            name_='characterisationResult')
     else:
         warnEmptyAttribute("characterisationResult",
                            "XSDataResultCharacterisation")
     for fileGraph_ in self.getFileGraph():
         fileGraph_.export(outfile, level, name_='fileGraph')
     if self._helicalDistance is not None:
         self.helicalDistance.export(outfile,
                                     level,
                                     name_='helicalDistance')
     if self._logFile is not None:
         self.logFile.export(outfile, level, name_='logFile')
Exemplo n.º 32
0
 def exportChildren(self, outfile, level, name_='XSDataInputXOalign'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._symmetry is not None:
         self.symmetry.export(outfile, level, name_='symmetry')
     else:
         warnEmptyAttribute("symmetry", "XSDataString")
     if self._orientation is not None:
         self.orientation.export(outfile, level, name_='orientation')
     else:
         warnEmptyAttribute("orientation", "XSDataXOalignOrientation")
     if self._cell is not None:
         self.cell.export(outfile, level, name_='cell')
     else:
         warnEmptyAttribute("cell", "XSDataXOalignCell")
     if self._omega is not None:
         self.omega.export(outfile, level, name_='omega')
     if self._kappa is not None:
         self.kappa.export(outfile, level, name_='kappa')
     if self._phi is not None:
         self.phi.export(outfile, level, name_='phi')
Exemplo n.º 33
0
 def exportChildren(self, outfile, level, name_='XSDataInputControlAutoPROC'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile, level, name_='dataCollectionId')
     if self._dirN is not None:
         self.dirN.export(outfile, level, name_='dirN')
     if self._templateN is not None:
         self.templateN.export(outfile, level, name_='templateN')
     if self._fromN is not None:
         self.fromN.export(outfile, level, name_='fromN')
     if self._toN is not None:
         self.toN.export(outfile, level, name_='toN')
     if self._processDirectory is not None:
         self.processDirectory.export(outfile, level, name_='processDirectory')
     if self._doAnomAndNonanom is not None:
         self.doAnomAndNonanom.export(outfile, level, name_='doAnomAndNonanom')
     if self._symm is not None:
         self.symm.export(outfile, level, name_='symm')
     if self._cell is not None:
         self.cell.export(outfile, level, name_='cell')
Exemplo n.º 34
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataInputXdsBurnStrategy'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._input_file is not None:
         self.input_file.export(outfile, level, name_='input_file')
     else:
         warnEmptyAttribute("input_file", "XSDataString")
     if self._space_group is not None:
         self.space_group.export(outfile, level, name_='space_group')
     else:
         warnEmptyAttribute("space_group", "XSDataInteger")
     if self._unit_cell_a is not None:
         self.unit_cell_a.export(outfile, level, name_='unit_cell_a')
     else:
         warnEmptyAttribute("unit_cell_a", "XSDataDouble")
     if self._unit_cell_b is not None:
         self.unit_cell_b.export(outfile, level, name_='unit_cell_b')
     else:
         warnEmptyAttribute("unit_cell_b", "XSDataDouble")
     if self._unit_cell_c is not None:
         self.unit_cell_c.export(outfile, level, name_='unit_cell_c')
     else:
         warnEmptyAttribute("unit_cell_c", "XSDataDouble")
     if self._unit_cell_alpha is not None:
         self.unit_cell_alpha.export(outfile,
                                     level,
                                     name_='unit_cell_alpha')
     else:
         warnEmptyAttribute("unit_cell_alpha", "XSDataDouble")
     if self._unit_cell_beta is not None:
         self.unit_cell_beta.export(outfile, level, name_='unit_cell_beta')
     else:
         warnEmptyAttribute("unit_cell_beta", "XSDataDouble")
     if self._unit_cell_gamma is not None:
         self.unit_cell_gamma.export(outfile,
                                     level,
                                     name_='unit_cell_gamma')
     else:
         warnEmptyAttribute("unit_cell_gamma", "XSDataDouble")
Exemplo n.º 35
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataInputPyarchThumbnailGenerator'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._diffractionImage is not None:
         self.diffractionImage.export(outfile,
                                      level,
                                      name_='diffractionImage')
     else:
         warnEmptyAttribute("diffractionImage", "XSDataFile")
     if self._forcedOutputDirectory is not None:
         self.forcedOutputDirectory.export(outfile,
                                           level,
                                           name_='forcedOutputDirectory')
     if self._waitForFileTimeOut is not None:
         self.waitForFileTimeOut.export(outfile,
                                        level,
                                        name_='waitForFileTimeOut')
     if self._format is not None:
         self.format.export(outfile, level, name_='format')
Exemplo n.º 36
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataInputWriteNexusFile'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._instrument is not None:
         self.instrument.export(outfile, level, name_='instrument')
     else:
         warnEmptyAttribute("instrument", "XSDataString")
     if self._outputFileName is not None:
         self.outputFileName.export(outfile, level, name_='outputFileName')
     else:
         warnEmptyAttribute("outputFileName", "XSDataString")
     if self._outputFileDirectory is not None:
         self.outputFileDirectory.export(outfile,
                                         level,
                                         name_='outputFileDirectory')
     for nexusGroup_ in self.getNexusGroup():
         nexusGroup_.export(outfile, level, name_='nexusGroup')
     if self.getNexusGroup() == []:
         warnEmptyAttribute("nexusGroup", "XSDataNexusArrayGroup")
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataInputControlDozorAndXDSAPP'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile,
                                      level,
                                      name_='dataCollectionId')
     if self._dozorProcessDirectory is not None:
         self.dozorProcessDirectory.export(outfile,
                                           level,
                                           name_='dozorProcessDirectory')
     if self._xdsappProcessDirectory is not None:
         self.xdsappProcessDirectory.export(outfile,
                                            level,
                                            name_='xdsappProcessDirectory')
     if self._doAnomAndNonanom is not None:
         self.doAnomAndNonanom.export(outfile,
                                      level,
                                      name_='doAnomAndNonanom')
Exemplo n.º 38
0
 def __init__(self,
              configuration=None,
              timeOut=None,
              expectedSize=None,
              expectedFile=None):
     XSDataInput.__init__(self, configuration)
     if expectedFile is None:
         self.__expectedFile = []
     else:
         checkType("XSDataInputWaitMultiFile",
                   "Constructor of XSDataInputWaitMultiFile", expectedFile,
                   "list")
         self.__expectedFile = expectedFile
     checkType("XSDataInputWaitMultiFile",
               "Constructor of XSDataInputWaitMultiFile", expectedSize,
               "XSDataInteger")
     self.__expectedSize = expectedSize
     checkType("XSDataInputWaitMultiFile",
               "Constructor of XSDataInputWaitMultiFile", timeOut,
               "XSDataTime")
     self.__timeOut = timeOut
Exemplo n.º 39
0
 def exportChildren(self, outfile, level, name_='XSDataInputControlDozor'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._template is not None:
         self.template.export(outfile, level, name_='template')
     else:
         warnEmptyAttribute("template", "XSDataString")
     if self._first_image_number is not None:
         self.first_image_number.export(outfile, level, name_='first_image_number')
     else:
         warnEmptyAttribute("first_image_number", "XSDataInteger")
     if self._last_image_number is not None:
         self.last_image_number.export(outfile, level, name_='last_image_number')
     else:
         warnEmptyAttribute("last_image_number", "XSDataInteger")
     if self._first_run_number is not None:
         self.first_run_number.export(outfile, level, name_='first_run_number')
     else:
         warnEmptyAttribute("first_run_number", "XSDataInteger")
     if self._last_run_number is not None:
         self.last_run_number.export(outfile, level, name_='last_run_number')
     else:
         warnEmptyAttribute("last_run_number", "XSDataInteger")
     if self._line_number_of is not None:
         self.line_number_of.export(outfile, level, name_='line_number_of')
     else:
         warnEmptyAttribute("line_number_of", "XSDataInteger")
     if self._reversing_rotation is not None:
         self.reversing_rotation.export(outfile, level, name_='reversing_rotation')
     else:
         warnEmptyAttribute("reversing_rotation", "XSDataBoolean")
     if self._pixelMin is not None:
         self.pixelMin.export(outfile, level, name_='pixelMin')
     if self._pixelMax is not None:
         self.pixelMax.export(outfile, level, name_='pixelMax')
     if self._beamstopDirection is not None:
         self.beamstopDirection.export(outfile, level, name_='beamstopDirection')
     if self._beamstopSize is not None:
         self.beamstopSize.export(outfile, level, name_='beamstopSize')
     if self._beamstopDistance is not None:
         self.beamstopDistance.export(outfile, level, name_='beamstopDistance')
Exemplo n.º 40
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'instrument':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setInstrument(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'outputFileName':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setOutputFileName(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'outputFileDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputFileDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'nexusGroup':
         obj_ = XSDataNexusArrayGroup()
         obj_.build(child_)
         self.nexusGroup.append(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 41
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'mtzfile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setMtzfile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'labin':
         obj_ = XSDataString()
         obj_.build(child_)
         self.labin.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'output':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setOutput(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'format':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setFormat(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 42
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'htmlFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.htmlFile.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'resultDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setResultDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'paperSize':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setPaperSize(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'lowQuality':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setLowQuality(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 43
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'diffractionImage':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.diffractionImage.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'forcedOutputDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setForcedOutputDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'waitForFileTimeOut':
         obj_ = XSDataTime()
         obj_.build(child_)
         self.setWaitForFileTimeOut(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'format':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setFormat(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dataCollectionId':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setDataCollectionId(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dozorProcessDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setDozorProcessDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'xdsappProcessDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setXdsappProcessDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'doAnomAndNonanom':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setDoAnomAndNonanom(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 45
0
 def exportChildren(self, outfile, level, name_='XSDataInputControlXDSAPP'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile,
                                      level,
                                      name_='dataCollectionId')
     if self._processDirectory is not None:
         self.processDirectory.export(outfile,
                                      level,
                                      name_='processDirectory')
     if self._doAnomAndNonanom is not None:
         self.doAnomAndNonanom.export(outfile,
                                      level,
                                      name_='doAnomAndNonanom')
     if self._hdf5ToCbfDirectory is not None:
         self.hdf5ToCbfDirectory.export(outfile,
                                        level,
                                        name_='hdf5ToCbfDirectory')
     if self._spaceGroup is not None:
         self.spaceGroup.export(outfile, level, name_='spaceGroup')
     if self._unitCell is not None:
         self.unitCell.export(outfile, level, name_='unitCell')
Exemplo n.º 46
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'characterisationResult':
         obj_ = XSDataResultCharacterisation()
         obj_.build(child_)
         self.setCharacterisationResult(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fileGraph':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.fileGraph.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'helicalDistance':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setHelicalDistance(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'logFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setLogFile(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 47
0
 def __init__(self,
              configuration=None,
              outputPath=None,
              outfileFromStdout=None,
              inputFileType=None,
              inputFileName=None,
              fireAndForget=None,
              commandLineProgram=None,
              commandLineOptions=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine",
               commandLineOptions, "XSDataString")
     self.__commandLineOptions = commandLineOptions
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine",
               commandLineProgram, "XSDataFile")
     self.__commandLineProgram = commandLineProgram
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine", fireAndForget,
               "XSDataBoolean")
     self.__fireAndForget = fireAndForget
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine", inputFileName,
               "XSDataFile")
     self.__inputFileName = inputFileName
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine", inputFileType,
               "XSDataString")
     self.__inputFileType = inputFileType
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine",
               outfileFromStdout, "XSDataBoolean")
     self.__outfileFromStdout = outfileFromStdout
     checkType("XSDataInputExecCommandLine",
               "Constructor of XSDataInputExecCommandLine", outputPath,
               "XSDataFile")
     self.__outputPath = outputPath
Exemplo n.º 48
0
 def __init__(self, configuration=None, timeOut=None, size=None, file=None):
     XSDataInput.__init__(self, configuration)
     if file is None:
         self._file = None
     elif file.__class__.__name__ == "XSDataFile":
         self._file = file
     else:
         strMessage = "ERROR! XSDataInputMXWaitFile constructor argument 'file' is not XSDataFile but %s" % self._file.__class__.__name__
         raise BaseException(strMessage)
     if size is None:
         self._size = None
     elif size.__class__.__name__ == "XSDataInteger":
         self._size = size
     else:
         strMessage = "ERROR! XSDataInputMXWaitFile constructor argument 'size' is not XSDataInteger but %s" % self._size.__class__.__name__
         raise BaseException(strMessage)
     if timeOut is None:
         self._timeOut = None
     elif timeOut.__class__.__name__ == "XSDataTime":
         self._timeOut = timeOut
     else:
         strMessage = "ERROR! XSDataInputMXWaitFile constructor argument 'timeOut' is not XSDataTime but %s" % self._timeOut.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 49
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dataCollectionId':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setDataCollectionId(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'processDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setProcessDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'doAnomAndNonanom':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setDoAnomAndNonanom(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'spaceGroup':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setSpaceGroup(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'unitCell':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setUnitCell(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'startFrame':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setStartFrame(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'endFrame':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setEndFrame(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 50
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'data':
         obj_ = XSDataImageExt()
         obj_.build(child_)
         self.data.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'dark':
         obj_ = XSDataImageExt()
         obj_.build(child_)
         self.dark.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'flat':
         obj_ = XSDataImageExt()
         obj_.build(child_)
         self.flat.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'output':
         obj_ = XSDataImageExt()
         obj_.build(child_)
         self.setOutput(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'dataScaleFactor':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setDataScaleFactor(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'darkScaleFactor':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setDarkScaleFactor(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'flatScaleFactor':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setFlatScaleFactor(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 51
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'commandLineOptions':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setCommandLineOptions(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'commandLineProgram':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setCommandLineProgram(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'fireAndForget':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setFireAndForget(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'inputFileName':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setInputFileName(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'inputFileType':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setInputFileType(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'outfileFromStdout':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setOutfileFromStdout(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'outputPath':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputPath(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 52
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'imageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'hdf5ImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setHdf5ImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'hdf5File':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setHdf5File(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'forcedOutputDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setForcedOutputDirectory(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'forcedOutputImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setForcedOutputImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'startImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setStartImageNumber(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'endImageNumber':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setEndImageNumber(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 53
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'geomFile':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setGeomFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'cellFile':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setCellFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'imagesFullPath':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setImagesFullPath(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'pointGroup':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setPointGroup(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'spaceGroup':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setSpaceGroup(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'resCutOff':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setResCutOff(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'baseFileName':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setBaseFileName(obj_)
     XSDataInput.buildChildren(self, child_, nodeName_)
Exemplo n.º 54
0
 def exportChildren(self, outfile, level, name_='XSDataInputFbest'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._flux is not None:
         self.flux.export(outfile, level, name_='flux')
     else:
         warnEmptyAttribute("flux", "XSDataDouble")
     if self._resolution is not None:
         self.resolution.export(outfile, level, name_='resolution')
     else:
         warnEmptyAttribute("resolution", "XSDataDouble")
     if self._beamH is not None:
         self.beamH.export(outfile, level, name_='beamH')
     if self._beamV is not None:
         self.beamV.export(outfile, level, name_='beamV')
     if self._wavelength is not None:
         self.wavelength.export(outfile, level, name_='wavelength')
     if self._aperture is not None:
         self.aperture.export(outfile, level, name_='aperture')
     if self._slitX is not None:
         self.slitX.export(outfile, level, name_='slitX')
     if self._slitY is not None:
         self.slitY.export(outfile, level, name_='slitY')
     if self._rotationRange is not None:
         self.rotationRange.export(outfile, level, name_='rotationRange')
     if self._rotationWidth is not None:
         self.rotationWidth.export(outfile, level, name_='rotationWidth')
     if self._minExposureTime is not None:
         self.minExposureTime.export(outfile, level, name_='minExposureTime')
     if self._doseLimit is not None:
         self.doseLimit.export(outfile, level, name_='doseLimit')
     if self._doseRate is not None:
         self.doseRate.export(outfile, level, name_='doseRate')
     if self._sensitivity is not None:
         self.sensitivity.export(outfile, level, name_='sensitivity')
     if self._crystalSize is not None:
         self.crystalSize.export(outfile, level, name_='crystalSize')
 def exportChildren(self, outfile, level, name_='XSDataInputControlXDSAPP'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._startImageNumber is not None:
         self.startImageNumber.export(outfile,
                                      level,
                                      name_='startImageNumber')
     if self._endImageNumber is not None:
         self.endImageNumber.export(outfile, level, name_='endImageNumber')
     if self._dataCollectionId is not None:
         self.dataCollectionId.export(outfile,
                                      level,
                                      name_='dataCollectionId')
     if self._processDirectory is not None:
         self.processDirectory.export(outfile,
                                      level,
                                      name_='processDirectory')
     if self._doAnom is not None:
         self.doAnom.export(outfile, level, name_='doAnom')
     if self._doAnomAndNonanom is not None:
         self.doAnomAndNonanom.export(outfile,
                                      level,
                                      name_='doAnomAndNonanom')
     if self._hdf5ToCbfDirectory is not None:
         self.hdf5ToCbfDirectory.export(outfile,
                                        level,
                                        name_='hdf5ToCbfDirectory')
     if self._spaceGroup is not None:
         self.spaceGroup.export(outfile, level, name_='spaceGroup')
     if self._unitCell is not None:
         self.unitCell.export(outfile, level, name_='unitCell')
     if self._useXdsAsciiToXml is not None:
         self.useXdsAsciiToXml.export(outfile,
                                      level,
                                      name_='useXdsAsciiToXml')
     if self._reprocess is not None:
         self.reprocess.export(outfile, level, name_='reprocess')
Exemplo n.º 56
0
 def exportChildren(self, outfile, level, name_='XSDataInputSolutionScattering'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     if self._title is not None:
         self.title.export(outfile, level, name_='title')
     for experimentalDataQ_ in self.getExperimentalDataQ():
         experimentalDataQ_.export(outfile, level, name_='experimentalDataQ')
     if self._experimentalDataQArray is not None:
         self.experimentalDataQArray.export(outfile, level, name_='experimentalDataQArray')
     for experimentalDataValues_ in self.getExperimentalDataValues():
         experimentalDataValues_.export(outfile, level, name_='experimentalDataValues')
     if self._experimentalDataIArray is not None:
         self.experimentalDataIArray.export(outfile, level, name_='experimentalDataIArray')
     for experimentalDataStdDev_ in self.getExperimentalDataStdDev():
         experimentalDataStdDev_.export(outfile, level, name_='experimentalDataStdDev')
     if self._experimentalDataStdArray is not None:
         self.experimentalDataStdArray.export(outfile, level, name_='experimentalDataStdArray')
     if self._experimentalDataFile is not None:
         self.experimentalDataFile.export(outfile, level, name_='experimentalDataFile')
     if self._rMaxSearchSettings is not None:
         self.rMaxSearchSettings.export(outfile, level, name_='rMaxSearchSettings')
     if self._angularUnits is not None:
         self.angularUnits.export(outfile, level, name_='angularUnits')
     if self._symmetry is not None:
         self.symmetry.export(outfile, level, name_='symmetry')
     if self._mode is not None:
         self.mode.export(outfile, level, name_='mode')
     if self._iNbThreads is not None:
         self.iNbThreads.export(outfile, level, name_='iNbThreads')
     if self._onlyGnom is not None:
         self.onlyGnom.export(outfile, level, name_='onlyGnom')
     if self._plotFit is not None:
         self.plotFit.export(outfile, level, name_='plotFit')
     if self._qMin is not None:
         self.qMin.export(outfile, level, name_='qMin')
     if self._qMax is not None:
         self.qMax.export(outfile, level, name_='qMax')
Exemplo n.º 57
0
 def exportChildren(self, outfile, level, name_='XSDataInputNormalize'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     for data_ in self.getData():
         data_.export(outfile, level, name_='data')
     if self.getData() == []:
         warnEmptyAttribute("data", "XSDataImageExt")
     for dark_ in self.getDark():
         dark_.export(outfile, level, name_='dark')
     for flat_ in self.getFlat():
         flat_.export(outfile, level, name_='flat')
     if self.__output is not None:
         self.output.export(outfile, level, name_='output')
     if self.__dataScaleFactor is not None:
         self.dataScaleFactor.export(outfile,
                                     level,
                                     name_='dataScaleFactor')
     if self.__darkScaleFactor is not None:
         self.darkScaleFactor.export(outfile,
                                     level,
                                     name_='darkScaleFactor')
     if self.__flatScaleFactor is not None:
         self.flatScaleFactor.export(outfile,
                                     level,
                                     name_='flatScaleFactor')
Exemplo n.º 58
0
 def exportChildren(self, outfile, level, name_='XSDataInputAutoPROC'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     for identifier_ in self.getIdentifier():
         identifier_.export(outfile, level, name_='identifier')
     if self.getIdentifier() == []:
         warnEmptyAttribute("identifier", "XSDataAutoPROCIdentifier")
     if self._lowResolutionLimit is not None:
         self.lowResolutionLimit.export(outfile,
                                        level,
                                        name_='lowResolutionLimit')
     if self._highResolutionLimit is not None:
         self.highResolutionLimit.export(outfile,
                                         level,
                                         name_='highResolutionLimit')
     if self._anomalous is not None:
         self.anomalous.export(outfile, level, name_='anomalous')
     if self._refMTZ is not None:
         self.refMTZ.export(outfile, level, name_='refMTZ')
     if self._masterH5 is not None:
         self.masterH5.export(outfile, level, name_='masterH5')
     if self._symm is not None:
         self.symm.export(outfile, level, name_='symm')
     if self._cell is not None:
         self.cell.export(outfile, level, name_='cell')
 def __init__(self,
              configuration=None,
              reprocess=None,
              endFrame=None,
              startFrame=None,
              unitCell=None,
              spaceGroup=None,
              doAnomAndNonanom=None,
              doAnom=None,
              processDirectory=None,
              dataCollectionId=None):
     XSDataInput.__init__(self, configuration)
     if dataCollectionId is None:
         self._dataCollectionId = None
     elif dataCollectionId.__class__.__name__ == "XSDataInteger":
         self._dataCollectionId = dataCollectionId
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'dataCollectionId' is not XSDataInteger but %s" % self._dataCollectionId.__class__.__name__
         raise BaseException(strMessage)
     if processDirectory is None:
         self._processDirectory = None
     elif processDirectory.__class__.__name__ == "XSDataFile":
         self._processDirectory = processDirectory
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'processDirectory' is not XSDataFile but %s" % self._processDirectory.__class__.__name__
         raise BaseException(strMessage)
     if doAnom is None:
         self._doAnom = None
     elif doAnom.__class__.__name__ == "XSDataBoolean":
         self._doAnom = doAnom
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'doAnom' is not XSDataBoolean but %s" % self._doAnom.__class__.__name__
         raise BaseException(strMessage)
     if doAnomAndNonanom is None:
         self._doAnomAndNonanom = None
     elif doAnomAndNonanom.__class__.__name__ == "XSDataBoolean":
         self._doAnomAndNonanom = doAnomAndNonanom
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'doAnomAndNonanom' is not XSDataBoolean but %s" % self._doAnomAndNonanom.__class__.__name__
         raise BaseException(strMessage)
     if spaceGroup is None:
         self._spaceGroup = None
     elif spaceGroup.__class__.__name__ == "XSDataString":
         self._spaceGroup = spaceGroup
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'spaceGroup' is not XSDataString but %s" % self._spaceGroup.__class__.__name__
         raise BaseException(strMessage)
     if unitCell is None:
         self._unitCell = None
     elif unitCell.__class__.__name__ == "XSDataString":
         self._unitCell = unitCell
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'unitCell' is not XSDataString but %s" % self._unitCell.__class__.__name__
         raise BaseException(strMessage)
     if startFrame is None:
         self._startFrame = None
     elif startFrame.__class__.__name__ == "XSDataInteger":
         self._startFrame = startFrame
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'startFrame' is not XSDataInteger but %s" % self._startFrame.__class__.__name__
         raise BaseException(strMessage)
     if endFrame is None:
         self._endFrame = None
     elif endFrame.__class__.__name__ == "XSDataInteger":
         self._endFrame = endFrame
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'endFrame' is not XSDataInteger but %s" % self._endFrame.__class__.__name__
         raise BaseException(strMessage)
     if reprocess is None:
         self._reprocess = None
     elif reprocess.__class__.__name__ == "XSDataBoolean":
         self._reprocess = reprocess
     else:
         strMessage = "ERROR! XSDataInputControlXia2DIALS constructor argument 'reprocess' is not XSDataBoolean but %s" % self._reprocess.__class__.__name__
         raise BaseException(strMessage)
 def exportChildren(self, outfile, level, name_='XSDataInputControlBackground3D'):
     XSDataInput.exportChildren(self, outfile, level, name_)
     for image_ in self.getImage():
         image_.export(outfile, level, name_='image')
     if self.getImage() == []:
         warnEmptyAttribute("image", "XSDataFile")