예제 #1
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'hklfile':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setHklfile(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #2
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'outputFilePath':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.setOutputFilePath(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #3
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'outputMatrix':
			obj_ = XSDataArray()
			obj_.build(child_)
			self.setOutputMatrix(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'fileNameParameters':
			obj_ = XSDataGridScreeningFileNameParameters()
			obj_.build(child_)
			self.setFileNameParameters(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'imageQualityIndicators':
			obj_ = XSDataImageQualityIndicators()
			obj_.build(child_)
			self.setImageQualityIndicators(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'mosaicity':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setMosaicity(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'rankingResolution':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setRankingResolution(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'comment':
			obj_ = XSDataString()
			obj_.build(child_)
			self.setComment(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'imageQualityIndicatorsId':
			obj_ = XSDataInteger()
			obj_.build(child_)
			self.setImageQualityIndicatorsId(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #5
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'spot':
			obj_ = XSDataXDSSpot()
			obj_.build(child_)
			self.spot.append(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #6
0
	def __init__(self, status=None, spot=None):
		XSDataResult.__init__(self, status)
		if spot is None:
			self.__spot = []
		else:
			checkType("XSDataResultXDSSpotSearch", "Constructor of XSDataResultXDSSpotSearch", spot, "XSDataXDSSpot")
			self.__spot = spot
예제 #7
0
파일: XSDataRdfitv1_0.py 프로젝트: tbn/edna
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'beta':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setBeta(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'gama':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setGama(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'dose_half_th':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setDose_half_th(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'dose_half':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setDose_half(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'relative_radiation_sensitivity':
			obj_ = XSDataDouble()
			obj_.build(child_)
			self.setRelative_radiation_sensitivity(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'query':
			obj_ = XSDataQuery()
			obj_.build(child_)
			self.query.append(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #9
0
	def __init__(self, status=None, fileGraph=None):
		XSDataResult.__init__(self, status)
		if fileGraph is None:
			self.__fileGraph = []
		else:
			checkType("XSDataResultPlotGle", "Constructor of XSDataResultPlotGle", fileGraph, "list")
			self.__fileGraph = fileGraph
예제 #10
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'fileGraph':
			obj_ = XSDataFile()
			obj_.build(child_)
			self.fileGraph.append(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #11
0
 def exportChildren(self, outfile, level, name_='XSDataResultXia2DIALS'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._logFile is not None:
         self.logFile.export(outfile, level, name_='logFile')
     else:
         warnEmptyAttribute("logFile", "XSDataFile")
     if self._htmlFile is not None:
         self.htmlFile.export(outfile, level, name_='htmlFile')
     else:
         warnEmptyAttribute("htmlFile", "XSDataFile")
     for dataFiles_ in self.getDataFiles():
         dataFiles_.export(outfile, level, name_='dataFiles')
     if self.getDataFiles() == []:
         warnEmptyAttribute("dataFiles", "XSDataFile")
     if self._ispybXML is not None:
         self.ispybXML.export(outfile, level, name_='ispybXML')
     else:
         warnEmptyAttribute("ispybXML", "XSDataFile")
     if self._summary is not None:
         self.summary.export(outfile, level, name_='summary')
     else:
         warnEmptyAttribute("summary", "XSDataFile")
     for logFiles_ in self.getLogFiles():
         logFiles_.export(outfile, level, name_='logFiles')
     if self.getLogFiles() == []:
         warnEmptyAttribute("logFiles", "XSDataFile")
예제 #12
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'energyCalibration':
         obj_ = XSDataEnergyCalibration()
         obj_.build(child_)
         self.setEnergyCalibration(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'imageBackground':
         obj_ = XSDataControlImageBackground3D()
         obj_.build(child_)
         self.imageBackground.append(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #14
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'xds_hkl':
         obj_ = XSDataString()
         obj_.build(child_)
         self.setXds_hkl(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #15
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'logFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setLogFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'htmlFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setHtmlFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dataFiles':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.dataFiles.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'ispybXML':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setIspybXML(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'summary':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setSummary(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'logFiles':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.logFiles.append(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #16
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'imageDozor':
         obj_ = XSDataImageDozor()
         obj_.build(child_)
         self.imageDozor.append(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #17
0
 def exportChildren(self, outfile, level, name_='XSDataResultXDSAPP'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._logFile is not None:
         self.logFile.export(outfile, level, name_='logFile')
     if self._pointlessLog is not None:
         self.pointlessLog.export(outfile, level, name_='pointlessLog')
     if self._phenixXtriageLog is not None:
         self.phenixXtriageLog.export(outfile, level, name_='phenixXtriageLog')
     if self._correctLP is not None:
         self.correctLP.export(outfile, level, name_='correctLP')
     if self._XDS_ASCII_HKL is not None:
         self.XDS_ASCII_HKL.export(outfile, level, name_='XDS_ASCII_HKL')
     if self._XDS_ASCII_HKL_1 is not None:
         self.XDS_ASCII_HKL_1.export(outfile, level, name_='XDS_ASCII_HKL_1')
     if self._XSCALE_LP is not None:
         self.XSCALE_LP.export(outfile, level, name_='XSCALE_LP')
     if self._XDS_INP is not None:
         self.XDS_INP.export(outfile, level, name_='XDS_INP')
     for mtz_F_ in self.getMtz_F():
         mtz_F_.export(outfile, level, name_='mtz_F')
     for mtz_I_ in self.getMtz_I():
         mtz_I_.export(outfile, level, name_='mtz_I')
     for mtz_F_plus_F_minus_ in self.getMtz_F_plus_F_minus():
         mtz_F_plus_F_minus_.export(outfile, level, name_='mtz_F_plus_F_minus')
     for hkl_ in self.getHkl():
         hkl_.export(outfile, level, name_='hkl')
     for cv_ in self.getCv():
         cv_.export(outfile, level, name_='cv')
	def __init__(self, status=None, query=None):
		XSDataResult.__init__(self, status)
		if query is None:
			self.__query = []
		else:
			checkType("XSDataResultAccumulator", "Constructor of XSDataResultAccumulator", query, "list")
			self.__query = query
예제 #19
0
	def __init__(self, status=None, dataArray=None, energy=None):
		XSDataResult.__init__(self, status)
	
	
		checkType("XSDataResultReadDataID24", "Constructor of XSDataResultReadDataID24", energy, "XSDataArray")
		self._energy = energy
		checkType("XSDataResultReadDataID24", "Constructor of XSDataResultReadDataID24", dataArray, "XSDataArray")
		self._dataArray = dataArray
예제 #20
0
	def __init__(self, status=None, timedOut=None, actualSize=None, actualFile=None):
		XSDataResult.__init__(self, status)
		checkType("XSDataResultWaitFile", "Constructor of XSDataResultWaitFile", actualFile, "XSDataFile")
		self.__actualFile = actualFile
		checkType("XSDataResultWaitFile", "Constructor of XSDataResultWaitFile", actualSize, "XSDataInteger")
		self.__actualSize = actualSize
		checkType("XSDataResultWaitFile", "Constructor of XSDataResultWaitFile", timedOut, "XSDataBoolean")
		self.__timedOut = timedOut
	def __init__(self, status=None, imageQualityIndicatorsId=None, comment=None, rankingResolution=None, mosaicity=None, imageQualityIndicators=None, fileNameParameters=None):
		XSDataResult.__init__(self, status)
		self.__fileNameParameters = fileNameParameters
		self.__imageQualityIndicators = imageQualityIndicators
		self.__mosaicity = mosaicity
		self.__rankingResolution = rankingResolution
		self.__comment = comment
		self.__imageQualityIndicatorsId = imageQualityIndicatorsId
예제 #22
0
 def __init__(self, status=None, htmlPage=None, bFactorPlot=None, scaleIntensityPlot=None, relative_radiation_sensitivity=None, dose_half=None, dose_half_th=None, gama=None, beta=None):
     XSDataResult.__init__(self, status)
     if beta is None:
         self._beta = None
     elif beta.__class__.__name__ == "XSDataDouble":
         self._beta = beta
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'beta' is not XSDataDouble but %s" % self._beta.__class__.__name__
         raise BaseException(strMessage)
     if gama is None:
         self._gama = None
     elif gama.__class__.__name__ == "XSDataDouble":
         self._gama = gama
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'gama' is not XSDataDouble but %s" % self._gama.__class__.__name__
         raise BaseException(strMessage)
     if dose_half_th is None:
         self._dose_half_th = None
     elif dose_half_th.__class__.__name__ == "XSDataDouble":
         self._dose_half_th = dose_half_th
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'dose_half_th' is not XSDataDouble but %s" % self._dose_half_th.__class__.__name__
         raise BaseException(strMessage)
     if dose_half is None:
         self._dose_half = None
     elif dose_half.__class__.__name__ == "XSDataDouble":
         self._dose_half = dose_half
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'dose_half' is not XSDataDouble but %s" % self._dose_half.__class__.__name__
         raise BaseException(strMessage)
     if relative_radiation_sensitivity is None:
         self._relative_radiation_sensitivity = None
     elif relative_radiation_sensitivity.__class__.__name__ == "XSDataDouble":
         self._relative_radiation_sensitivity = relative_radiation_sensitivity
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'relative_radiation_sensitivity' is not XSDataDouble but %s" % self._relative_radiation_sensitivity.__class__.__name__
         raise BaseException(strMessage)
     if scaleIntensityPlot is None:
         self._scaleIntensityPlot = None
     elif scaleIntensityPlot.__class__.__name__ == "XSDataFile":
         self._scaleIntensityPlot = scaleIntensityPlot
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'scaleIntensityPlot' is not XSDataFile but %s" % self._scaleIntensityPlot.__class__.__name__
         raise BaseException(strMessage)
     if bFactorPlot is None:
         self._bFactorPlot = None
     elif bFactorPlot.__class__.__name__ == "XSDataFile":
         self._bFactorPlot = bFactorPlot
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'bFactorPlot' is not XSDataFile but %s" % self._bFactorPlot.__class__.__name__
         raise BaseException(strMessage)
     if htmlPage is None:
         self._htmlPage = None
     elif htmlPage.__class__.__name__ == "XSDataFile":
         self._htmlPage = htmlPage
     else:
         strMessage = "ERROR! XSDataResultRdfit constructor argument 'htmlPage' is not XSDataFile but %s" % self._htmlPage.__class__.__name__
         raise BaseException(strMessage)
예제 #23
0
 def __init__(self, status=None, energyCalibration=None):
     XSDataResult.__init__(self, status)
     if energyCalibration is None:
         self._energyCalibration = None
     elif energyCalibration.__class__.__name__ == "XSDataEnergyCalibration":
         self._energyCalibration = energyCalibration
     else:
         strMessage = "ERROR! XSDataResultCalibrateEnergy constructor argument 'energyCalibration' is not XSDataEnergyCalibration but %s" % self._energyCalibration.__class__.__name__
         raise BaseException(strMessage)
예제 #24
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'edge':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setEdge(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'slope':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setSlope(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'jump':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setJump(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'hwl':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setHwl(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'ewl':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setEwl(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort92':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort92(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort95':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort95(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort96':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort96(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort97':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort97(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort98':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort98(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'fort99':
         obj_ = XSDataArray()
         obj_.build(child_)
         self.setFort99(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #25
0
 def __init__(self, status=None, xds_hkl=None):
     XSDataResult.__init__(self, status)
     if xds_hkl is None:
         self._xds_hkl = None
     elif xds_hkl.__class__.__name__ == "XSDataString":
         self._xds_hkl = xds_hkl
     else:
         strMessage = "ERROR! XSDataOutputXdsBurnStrategy constructor argument 'xds_hkl' is not XSDataString but %s" % self._xds_hkl.__class__.__name__
         raise BaseException(strMessage)
예제 #26
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataResultPyarchThumbnailGeneratorParallel'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     for pathToJPEGImage_ in self.getPathToJPEGImage():
         pathToJPEGImage_.export(outfile, level, name_='pathToJPEGImage')
     for pathToThumbImage_ in self.getPathToThumbImage():
         pathToThumbImage_.export(outfile, level, name_='pathToThumbImage')
예제 #27
0
 def __init__(self, status=None, energyCalibration=None):
     XSDataResult.__init__(self, status)
     if energyCalibration is None:
         self._energyCalibration = None
     elif energyCalibration.__class__.__name__ == "XSDataEnergyCalibration":
         self._energyCalibration = energyCalibration
     else:
         strMessage = "ERROR! XSDataResultCalibrateEnergy constructor argument 'energyCalibration' is not XSDataEnergyCalibration but %s" % self._energyCalibration.__class__.__name__
         raise BaseException(strMessage)
예제 #28
0
 def __init__(self, status=None, imageDozor=None):
     XSDataResult.__init__(self, status)
     if imageDozor is None:
         self._imageDozor = []
     elif imageDozor.__class__.__name__ == "list":
         self._imageDozor = imageDozor
     else:
         strMessage = "ERROR! XSDataResultDozor constructor argument 'imageDozor' is not list but %s" % self._imageDozor.__class__.__name__
         raise BaseException(strMessage)
예제 #29
0
 def __init__(self, status=None, pdfFile=None):
     XSDataResult.__init__(self, status)
     if pdfFile is None:
         self._pdfFile = None
     elif pdfFile.__class__.__name__ == "XSDataFile":
         self._pdfFile = pdfFile
     else:
         strMessage = "ERROR! XSDataResultHTML2PDF constructor argument 'pdfFile' is not XSDataFile but %s" % self._pdfFile.__class__.__name__
         raise BaseException(strMessage)
 def __init__(self, status=None, imageBackground=None):
     XSDataResult.__init__(self, status)
     if imageBackground is None:
         self._imageBackground = []
     elif imageBackground.__class__.__name__ == "list":
         self._imageBackground = imageBackground
     else:
         strMessage = "ERROR! XSDataResultControlBackground3D constructor argument 'imageBackground' is not list but %s" % self._imageBackground.__class__.__name__
         raise BaseException(strMessage)
예제 #31
0
 def __init__(self, status=None, thumbnail=None):
     XSDataResult.__init__(self, status)
     if thumbnail is None:
         self._thumbnail = None
     elif thumbnail.__class__.__name__ == "XSDataFile":
         self._thumbnail = thumbnail
     else:
         strMessage = "ERROR! XSDataResultMXThumbnail constructor argument 'thumbnail' is not XSDataFile but %s" % self._thumbnail.__class__.__name__
         raise BaseException(strMessage)
예제 #32
0
	def exportChildren(self, outfile, level, name_='XSDataRaddoseOutput'):
		XSDataResult.exportChildren(self, outfile, level, name_)
		if self.__absorbedDose is not None:
			self.absorbedDose.export(outfile, level, name_='absorbedDose')
		if self.__absorbedDoseRate is not None:
			self.absorbedDoseRate.export(outfile, level, name_='absorbedDoseRate')
		if self.__pathToLogFile is not None:
			self.pathToLogFile.export(outfile, level, name_='pathToLogFile')
		if self.__timeToReachHendersonLimit is not None:
			self.timeToReachHendersonLimit.export(outfile, level, name_='timeToReachHendersonLimit')
예제 #33
0
	def __init__(self, status=None, timeToReachHendersonLimit=None, pathToLogFile=None, absorbedDoseRate=None, absorbedDose=None):
		XSDataResult.__init__(self, status)
		checkType("XSDataRaddoseOutput", "Constructor of XSDataRaddoseOutput", absorbedDose, "XSDataDouble")
		self.__absorbedDose = absorbedDose
		checkType("XSDataRaddoseOutput", "Constructor of XSDataRaddoseOutput", absorbedDoseRate, "XSDataAbsorbedDoseRate")
		self.__absorbedDoseRate = absorbedDoseRate
		checkType("XSDataRaddoseOutput", "Constructor of XSDataRaddoseOutput", pathToLogFile, "XSDataFile")
		self.__pathToLogFile = pathToLogFile
		checkType("XSDataRaddoseOutput", "Constructor of XSDataRaddoseOutput", timeToReachHendersonLimit, "XSDataTime")
		self.__timeToReachHendersonLimit = timeToReachHendersonLimit
예제 #34
0
	def exportChildren(self, outfile, level, name_='XSDataResultLabelit'):
		XSDataResult.exportChildren(self, outfile, level, name_)
		if self.__labelitMosflmScriptsOutput is not None:
			self.labelitMosflmScriptsOutput.export(outfile, level, name_='labelitMosflmScriptsOutput')
		else:
			warnEmptyAttribute("labelitMosflmScriptsOutput", "XSDataLabelitMosflmScriptsOutput")
		if self.__labelitScreenOutput is not None:
			self.labelitScreenOutput.export(outfile, level, name_='labelitScreenOutput')
		else:
			warnEmptyAttribute("labelitScreenOutput", "XSDataLabelitScreenOutput")
예제 #35
0
	def exportChildren(self, outfile, level, name_='XSDataResultWaitMultiFile'):
		XSDataResult.exportChildren(self, outfile, level, name_)
		for actualFile_ in self.getActualFile():
			actualFile_.export(outfile, level, name_='actualFile')
		if self.__actualMinSize is not None:
			self.actualMinSize.export(outfile, level, name_='actualMinSize')
		if self.__timedOut is not None:
			self.timedOut.export(outfile, level, name_='timedOut')
		else:
			warnEmptyAttribute("timedOut", "XSDataBoolean")
예제 #36
0
 def exportChildren(self, outfile, level, name_='XSDataResultWaitFile'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self.__actualFile is not None:
         self.actualFile.export(outfile, level, name_='actualFile')
     if self.__actualSize is not None:
         self.actualSize.export(outfile, level, name_='actualSize')
     if self.__timedOut is not None:
         self.timedOut.export(outfile, level, name_='timedOut')
     else:
         warnEmptyAttribute("timedOut", "XSDataBoolean")
예제 #37
0
 def exportChildren(self, outfile, level, name_='XSDataResultMXWaitFile'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._timedOut is not None:
         self.timedOut.export(outfile, level, name_='timedOut')
     else:
         warnEmptyAttribute("timedOut", "XSDataBoolean")
     if self._finalSize is not None:
         self.finalSize.export(outfile, level, name_='finalSize')
     else:
         warnEmptyAttribute("finalSize", "XSDataInteger")
예제 #38
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataResultCalibrateEnergy'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._energyCalibration is not None:
         self.energyCalibration.export(outfile,
                                       level,
                                       name_='energyCalibration')
     else:
         warnEmptyAttribute("energyCalibration", "XSDataEnergyCalibration")
예제 #39
0
    def postProcess(self):
        self.DEBUG('Truncate: postProcess')
        EDPluginExecProcessScript.postProcess(self)
        output_file = self.dataInput.output_file.value

        res = XSDataResult()
        status = XSDataStatus()
        status.isSuccess = XSDataBoolean(os.path.exists(output_file))
        res.status = status

        self.dataOutput = res
예제 #40
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataResultMatrixInvertFile'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self.__outputMatrixFile is not None:
         self.outputMatrixFile.export(outfile,
                                      level,
                                      name_='outputMatrixFile')
     else:
         warnEmptyAttribute("outputMatrixFile", "XSDataFile")
예제 #41
0
    def __init__(self, status=None, dataArray=None, energy=None):
        XSDataResult.__init__(self, status)

        checkType("XSDataResultReadDataID24",
                  "Constructor of XSDataResultReadDataID24", energy,
                  "XSDataArray")
        self._energy = energy
        checkType("XSDataResultReadDataID24",
                  "Constructor of XSDataResultReadDataID24", dataArray,
                  "XSDataArray")
        self._dataArray = dataArray
예제 #42
0
    def postProcess(self):
        self.DEBUG('FileConversion: postProcess')
        EDPluginControl.postProcess(self)
        output_file = self.dataInput.output_file.value

        res = XSDataResult()
        status = XSDataStatus()
        status.isSuccess = XSDataBoolean(
            os.path.exists(self.uniqueify.dataInput.output_file.value))
        res.status = status

        self.dataOutput = res
예제 #43
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'outputCBFFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputCBFFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'outputCBFFileTemplate':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setOutputCBFFileTemplate(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #44
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'pathToHTMLFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setPathToHTMLFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'pathToHTMLDirectory':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setPathToHTMLDirectory(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #45
0
	def buildChildren(self, child_, nodeName_):
		if child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'labelitMosflmScriptsOutput':
			obj_ = XSDataLabelitMosflmScriptsOutput()
			obj_.build(child_)
			self.setLabelitMosflmScriptsOutput(obj_)
		elif child_.nodeType == Node.ELEMENT_NODE and \
			nodeName_ == 'labelitScreenOutput':
			obj_ = XSDataLabelitScreenOutput()
			obj_.build(child_)
			self.setLabelitScreenOutput(obj_)
		XSDataResult.buildChildren(self, child_, nodeName_)
예제 #46
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'timedOut':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setTimedOut(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'finalSize':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setFinalSize(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #47
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'logFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setLogFile(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'solution':
         obj_ = XSDataXOalignSolution()
         obj_.build(child_)
         self.solution.append(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #48
0
 def buildChildren(self, child_, nodeName_):
     if 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_)
     XSDataResult.buildChildren(self, child_, nodeName_)
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'pathToJPEGImage':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.pathToJPEGImage.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'pathToThumbImage':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.pathToThumbImage.append(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #50
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'exposureTimePerImage':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setExposureTimePerImage(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_ == 'numberOfImages':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setNumberOfImages(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'rotationWidth':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setRotationWidth(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'resolution':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setResolution(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'totalDose':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setTotalDose(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'totalExposureTime':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setTotalExposureTime(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'doseRate':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setDoseRate(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'sensitivity':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setSensitivity(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'minExposure':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setMinExposure(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #51
0
 def __init__(self,
              status=None,
              pathToHTMLDirectory=None,
              pathToHTMLFile=None):
     XSDataResult.__init__(self, status)
     checkType("XSDataResultSimpleHTMLPage",
               "Constructor of XSDataResultSimpleHTMLPage", pathToHTMLFile,
               "XSDataFile")
     self.__pathToHTMLFile = pathToHTMLFile
     checkType("XSDataResultSimpleHTMLPage",
               "Constructor of XSDataResultSimpleHTMLPage",
               pathToHTMLDirectory, "XSDataFile")
     self.__pathToHTMLDirectory = pathToHTMLDirectory
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataResultPyarchThumbnailGenerator'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._pathToJPEGImage is not None:
         self.pathToJPEGImage.export(outfile,
                                     level,
                                     name_='pathToJPEGImage')
     if self._pathToThumbImage is not None:
         self.pathToThumbImage.export(outfile,
                                      level,
                                      name_='pathToThumbImage')
예제 #53
0
 def __init__(self,
              status=None,
              logFiles=None,
              summary=None,
              ispybXML=None,
              dataFiles=None,
              htmlFile=None,
              logFile=None):
     XSDataResult.__init__(self, status)
     if logFile is None:
         self._logFile = None
     elif logFile.__class__.__name__ == "XSDataFile":
         self._logFile = logFile
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'logFile' is not XSDataFile but %s" % self._logFile.__class__.__name__
         raise BaseException(strMessage)
     if htmlFile is None:
         self._htmlFile = None
     elif htmlFile.__class__.__name__ == "XSDataFile":
         self._htmlFile = htmlFile
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'htmlFile' is not XSDataFile but %s" % self._htmlFile.__class__.__name__
         raise BaseException(strMessage)
     if dataFiles is None:
         self._dataFiles = []
     elif dataFiles.__class__.__name__ == "list":
         self._dataFiles = dataFiles
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'dataFiles' is not list but %s" % self._dataFiles.__class__.__name__
         raise BaseException(strMessage)
     if ispybXML is None:
         self._ispybXML = None
     elif ispybXML.__class__.__name__ == "XSDataFile":
         self._ispybXML = ispybXML
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'ispybXML' is not XSDataFile but %s" % self._ispybXML.__class__.__name__
         raise BaseException(strMessage)
     if summary is None:
         self._summary = None
     elif summary.__class__.__name__ == "XSDataFile":
         self._summary = summary
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'summary' is not XSDataFile but %s" % self._summary.__class__.__name__
         raise BaseException(strMessage)
     if logFiles is None:
         self._logFiles = []
     elif logFiles.__class__.__name__ == "list":
         self._logFiles = logFiles
     else:
         strMessage = "ERROR! XSDataResultXia2DIALS constructor argument 'logFiles' is not list but %s" % self._logFiles.__class__.__name__
         raise BaseException(strMessage)
예제 #54
0
 def exportChildren(self, outfile, level, name_='XSDataResultCrystFEL'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._overallCompl is not None:
         self.overallCompl.export(outfile, level, name_='overallCompl')
     else:
         warnEmptyAttribute("overallCompl", "XSDataDouble")
     if self._overallRed is not None:
         self.overallRed.export(outfile, level, name_='overallRed')
     else:
         warnEmptyAttribute("overallRed", "XSDataDouble")
     if self._overallSnr is not None:
         self.overallSnr.export(outfile, level, name_='overallSnr')
     else:
         warnEmptyAttribute("overallSnr", "XSDataDouble")
     if self._overallRsplit is not None:
         self.overallRsplit.export(outfile, level, name_='overallRsplit')
     else:
         warnEmptyAttribute("overallRsplit", "XSDataDouble")
     if self._overallCC is not None:
         self.overallCC.export(outfile, level, name_='overallCC')
     else:
         warnEmptyAttribute("overallCC", "XSDataDouble")
     if self._resolutionLimitLow is not None:
         self.resolutionLimitLow.export(outfile,
                                        level,
                                        name_='resolutionLimitLow')
     else:
         warnEmptyAttribute("resolutionLimitLow", "XSDataDouble")
     if self._resolutionLimitHigh is not None:
         self.resolutionLimitHigh.export(outfile,
                                         level,
                                         name_='resolutionLimitHigh')
     else:
         warnEmptyAttribute("resolutionLimitHigh", "XSDataDouble")
     if self._comment is not None:
         self.comment.export(outfile, level, name_='comment')
     else:
         warnEmptyAttribute("comment", "XSDataString")
     for dataFiles_ in self.getDataFiles():
         dataFiles_.export(outfile, level, name_='dataFiles')
     if self.getDataFiles() == []:
         warnEmptyAttribute("dataFiles", "XSDataFile")
     if self._summaryFile is not None:
         self.summaryFile.export(outfile, level, name_='summaryFile')
     else:
         warnEmptyAttribute("summaryFile", "XSDataFile")
     for logFiles_ in self.getLogFiles():
         logFiles_.export(outfile, level, name_='logFiles')
     if self.getLogFiles() == []:
         warnEmptyAttribute("logFiles", "XSDataFile")
예제 #55
0
 def exportChildren(self,
                    outfile,
                    level,
                    name_='XSDataResultSimpleHTMLPage'):
     XSDataResult.exportChildren(self, outfile, level, name_)
     if self._pathToHTMLFile is not None:
         self.pathToHTMLFile.export(outfile, level, name_='pathToHTMLFile')
     else:
         warnEmptyAttribute("pathToHTMLFile", "XSDataFile")
     if self._pathToHTMLDirectory is not None:
         self.pathToHTMLDirectory.export(outfile,
                                         level,
                                         name_='pathToHTMLDirectory')
     else:
         warnEmptyAttribute("pathToHTMLDirectory", "XSDataFile")
예제 #56
0
 def __init__(self, status=None, finalSize=None, timedOut=None):
     XSDataResult.__init__(self, status)
     if timedOut is None:
         self._timedOut = None
     elif timedOut.__class__.__name__ == "XSDataBoolean":
         self._timedOut = timedOut
     else:
         strMessage = "ERROR! XSDataResultMXWaitFile constructor argument 'timedOut' is not XSDataBoolean but %s" % self._timedOut.__class__.__name__
         raise BaseException(strMessage)
     if finalSize is None:
         self._finalSize = None
     elif finalSize.__class__.__name__ == "XSDataInteger":
         self._finalSize = finalSize
     else:
         strMessage = "ERROR! XSDataResultMXWaitFile constructor argument 'finalSize' is not XSDataInteger but %s" % self._finalSize.__class__.__name__
         raise BaseException(strMessage)
예제 #57
0
 def __init__(self, status=None, solution=None, logFile=None):
     XSDataResult.__init__(self, status)
     if logFile is None:
         self._logFile = None
     elif logFile.__class__.__name__ == "XSDataFile":
         self._logFile = logFile
     else:
         strMessage = "ERROR! XSDataResultXOalign constructor argument 'logFile' is not XSDataFile but %s" % self._logFile.__class__.__name__
         raise BaseException(strMessage)
     if solution is None:
         self._solution = []
     elif solution.__class__.__name__ == "list":
         self._solution = solution
     else:
         strMessage = "ERROR! XSDataResultXOalign constructor argument 'solution' is not list but %s" % self._solution.__class__.__name__
         raise BaseException(strMessage)
예제 #58
0
 def __init__(self, status=None, dataArray=None, energy=None):
     XSDataResult.__init__(self, status)
     if energy is None:
         self._energy = None
     elif energy.__class__.__name__ == "XSDataArray":
         self._energy = energy
     else:
         strMessage = "ERROR! XSDataResultReadDataBM23 constructor argument 'energy' is not XSDataArray but %s" % self._energy.__class__.__name__
         raise BaseException(strMessage)
     if dataArray is None:
         self._dataArray = None
     elif dataArray.__class__.__name__ == "XSDataArray":
         self._dataArray = dataArray
     else:
         strMessage = "ERROR! XSDataResultReadDataBM23 constructor argument 'dataArray' is not XSDataArray but %s" % self._dataArray.__class__.__name__
         raise BaseException(strMessage)
예제 #59
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'beta':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setBeta(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'gama':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setGama(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dose_half_th':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setDose_half_th(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'dose_half':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setDose_half(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'relative_radiation_sensitivity':
         obj_ = XSDataDouble()
         obj_.build(child_)
         self.setRelative_radiation_sensitivity(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'scaleIntensityPlot':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setScaleIntensityPlot(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'bFactorPlot':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setBFactorPlot(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'htmlPage':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setHtmlPage(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'jsonPath':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.setJsonPath(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)
예제 #60
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'actualFile':
         obj_ = XSDataFile()
         obj_.build(child_)
         self.actualFile.append(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'actualMinSize':
         obj_ = XSDataInteger()
         obj_.build(child_)
         self.setActualMinSize(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
      nodeName_ == 'timedOut':
         obj_ = XSDataBoolean()
         obj_.build(child_)
         self.setTimedOut(obj_)
     XSDataResult.buildChildren(self, child_, nodeName_)