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.º 2
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 __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.º 4
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.º 5
0
 def __init__(self,
              configuration=None,
              fileGraph=None,
              characterisationResultv2_0=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 characterisationResultv2_0 is None:
         self._characterisationResultv2_0 = None
     elif characterisationResultv2_0.__class__.__name__ == "XSDataResultCharacterisationv2_0":
         self._characterisationResultv2_0 = characterisationResultv2_0
     else:
         strMessage = "ERROR! XSDataInputSimpleHTMLPage constructor argument 'characterisationResultv2_0' is not XSDataResultCharacterisationv2_0 but %s" % self._characterisationResultv2_0.__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)
Exemplo n.º 6
0
    def __init__(self,
                 configuration=None,
                 doOnlyIntegrationWithXMLOutput=None,
                 doOnlyImageQualityIndicators=None,
                 storeImageQualityIndicatorsInISPyB=None,
                 diffractionPlan=None,
                 imageFile=None):
        XSDataInput.__init__(self, configuration)

        checkType("XSDataInputGridScreening",
                  "Constructor of XSDataInputGridScreening", imageFile,
                  "XSDataFile")
        self._imageFile = imageFile
        checkType("XSDataInputGridScreening",
                  "Constructor of XSDataInputGridScreening", diffractionPlan,
                  "XSDataDiffractionPlan")
        self._diffractionPlan = diffractionPlan
        checkType("XSDataInputGridScreening",
                  "Constructor of XSDataInputGridScreening",
                  storeImageQualityIndicatorsInISPyB, "XSDataBoolean")
        self._storeImageQualityIndicatorsInISPyB = storeImageQualityIndicatorsInISPyB
        checkType("XSDataInputGridScreening",
                  "Constructor of XSDataInputGridScreening",
                  doOnlyImageQualityIndicators, "XSDataBoolean")
        self._doOnlyImageQualityIndicators = doOnlyImageQualityIndicators
        checkType("XSDataInputGridScreening",
                  "Constructor of XSDataInputGridScreening",
                  doOnlyIntegrationWithXMLOutput, "XSDataBoolean")
        self._doOnlyIntegrationWithXMLOutput = doOnlyIntegrationWithXMLOutput
 def __init__(self,
              configuration=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)
Exemplo n.º 8
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.º 9
0
    def __init__(self,
                 configuration=None,
                 nexusGroup=None,
                 outputFileDirectory=None,
                 outputFileName=None,
                 instrument=None):
        XSDataInput.__init__(self, configuration)

        checkType("XSDataInputWriteNexusFile",
                  "Constructor of XSDataInputWriteNexusFile", instrument,
                  "XSDataString")
        self._instrument = instrument
        checkType("XSDataInputWriteNexusFile",
                  "Constructor of XSDataInputWriteNexusFile", outputFileName,
                  "XSDataString")
        self._outputFileName = outputFileName
        checkType("XSDataInputWriteNexusFile",
                  "Constructor of XSDataInputWriteNexusFile",
                  outputFileDirectory, "XSDataFile")
        self._outputFileDirectory = outputFileDirectory
        if nexusGroup is None:
            self._nexusGroup = []
        else:
            checkType("XSDataInputWriteNexusFile",
                      "Constructor of XSDataInputWriteNexusFile", nexusGroup,
                      "list")
            self._nexusGroup = nexusGroup
Exemplo n.º 10
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 __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.º 12
0
 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)
 def __init__(self,
              configuration=None,
              doAnomAndNonanom=None,
              xdsappProcessDirectory=None,
              dozorProcessDirectory=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! XSDataInputControlDozorAndXDSAPP constructor argument 'dataCollectionId' is not XSDataInteger but %s" % self._dataCollectionId.__class__.__name__
         raise BaseException(strMessage)
     if dozorProcessDirectory is None:
         self._dozorProcessDirectory = None
     elif dozorProcessDirectory.__class__.__name__ == "XSDataFile":
         self._dozorProcessDirectory = dozorProcessDirectory
     else:
         strMessage = "ERROR! XSDataInputControlDozorAndXDSAPP constructor argument 'dozorProcessDirectory' is not XSDataFile but %s" % self._dozorProcessDirectory.__class__.__name__
         raise BaseException(strMessage)
     if xdsappProcessDirectory is None:
         self._xdsappProcessDirectory = None
     elif xdsappProcessDirectory.__class__.__name__ == "XSDataFile":
         self._xdsappProcessDirectory = xdsappProcessDirectory
     else:
         strMessage = "ERROR! XSDataInputControlDozorAndXDSAPP constructor argument 'xdsappProcessDirectory' is not XSDataFile but %s" % self._xdsappProcessDirectory.__class__.__name__
         raise BaseException(strMessage)
     if doAnomAndNonanom is None:
         self._doAnomAndNonanom = None
     elif doAnomAndNonanom.__class__.__name__ == "XSDataBoolean":
         self._doAnomAndNonanom = doAnomAndNonanom
     else:
         strMessage = "ERROR! XSDataInputControlDozorAndXDSAPP constructor argument 'doAnomAndNonanom' is not XSDataBoolean but %s" % self._doAnomAndNonanom.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 14
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.º 15
0
    def __init__(self,
                 configuration=None,
                 format=None,
                 output=None,
                 labin=None,
                 mtzfile=None):
        XSDataInput.__init__(self, configuration)

        checkType("XSDataInputMtz2Various",
                  "Constructor of XSDataInputMtz2Various", mtzfile,
                  "XSDataFile")
        self._mtzfile = mtzfile
        if labin is None:
            self._labin = []
        else:
            checkType("XSDataInputMtz2Various",
                      "Constructor of XSDataInputMtz2Various", labin, "list")
            self._labin = labin
        checkType("XSDataInputMtz2Various",
                  "Constructor of XSDataInputMtz2Various", output,
                  "XSDataString")
        self._output = output
        checkType("XSDataInputMtz2Various",
                  "Constructor of XSDataInputMtz2Various", format,
                  "XSDataString")
        self._format = format
Exemplo n.º 16
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.º 17
0
 def __init__(self,
              configuration=None,
              endImageNumber=None,
              startImageNumber=None,
              forcedOutputImageNumber=None,
              forcedOutputDirectory=None,
              hdf5File=None,
              hdf5ImageNumber=None,
              imageNumber=None):
     XSDataInput.__init__(self, configuration)
     if imageNumber is None:
         self._imageNumber = None
     elif imageNumber.__class__.__name__ == "XSDataInteger":
         self._imageNumber = imageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'imageNumber' is not XSDataInteger but %s" % self._imageNumber.__class__.__name__
         raise BaseException(strMessage)
     if hdf5ImageNumber is None:
         self._hdf5ImageNumber = None
     elif hdf5ImageNumber.__class__.__name__ == "XSDataInteger":
         self._hdf5ImageNumber = hdf5ImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'hdf5ImageNumber' is not XSDataInteger but %s" % self._hdf5ImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if hdf5File is None:
         self._hdf5File = None
     elif hdf5File.__class__.__name__ == "XSDataFile":
         self._hdf5File = hdf5File
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'hdf5File' is not XSDataFile but %s" % self._hdf5File.__class__.__name__
         raise BaseException(strMessage)
     if forcedOutputDirectory is None:
         self._forcedOutputDirectory = None
     elif forcedOutputDirectory.__class__.__name__ == "XSDataFile":
         self._forcedOutputDirectory = forcedOutputDirectory
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'forcedOutputDirectory' is not XSDataFile but %s" % self._forcedOutputDirectory.__class__.__name__
         raise BaseException(strMessage)
     if forcedOutputImageNumber is None:
         self._forcedOutputImageNumber = None
     elif forcedOutputImageNumber.__class__.__name__ == "XSDataInteger":
         self._forcedOutputImageNumber = forcedOutputImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'forcedOutputImageNumber' is not XSDataInteger but %s" % self._forcedOutputImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if startImageNumber is None:
         self._startImageNumber = None
     elif startImageNumber.__class__.__name__ == "XSDataInteger":
         self._startImageNumber = startImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'startImageNumber' is not XSDataInteger but %s" % self._startImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if endImageNumber is None:
         self._endImageNumber = None
     elif endImageNumber.__class__.__name__ == "XSDataInteger":
         self._endImageNumber = endImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'endImageNumber' is not XSDataInteger but %s" % self._endImageNumber.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 18
0
 def __init__(self,
              configuration=None,
              endFrame=None,
              startFrame=None,
              unitCell=None,
              spaceGroup=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)
     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)
Exemplo n.º 19
0
 def __init__(self,
              configuration=None,
              baseFileName=None,
              resCutOff=None,
              spaceGroup=None,
              pointGroup=None,
              imagesFullPath=None,
              cellFile=None,
              geomFile=None):
     XSDataInput.__init__(self, configuration)
     if geomFile is None:
         self._geomFile = None
     elif geomFile.__class__.__name__ == "XSDataString":
         self._geomFile = geomFile
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'geomFile' is not XSDataString but %s" % self._geomFile.__class__.__name__
         raise BaseException(strMessage)
     if cellFile is None:
         self._cellFile = None
     elif cellFile.__class__.__name__ == "XSDataString":
         self._cellFile = cellFile
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'cellFile' is not XSDataString but %s" % self._cellFile.__class__.__name__
         raise BaseException(strMessage)
     if imagesFullPath is None:
         self._imagesFullPath = None
     elif imagesFullPath.__class__.__name__ == "XSDataString":
         self._imagesFullPath = imagesFullPath
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'imagesFullPath' is not XSDataString but %s" % self._imagesFullPath.__class__.__name__
         raise BaseException(strMessage)
     if pointGroup is None:
         self._pointGroup = None
     elif pointGroup.__class__.__name__ == "XSDataString":
         self._pointGroup = pointGroup
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'pointGroup' is not XSDataString but %s" % self._pointGroup.__class__.__name__
         raise BaseException(strMessage)
     if spaceGroup is None:
         self._spaceGroup = None
     elif spaceGroup.__class__.__name__ == "XSDataString":
         self._spaceGroup = spaceGroup
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'spaceGroup' is not XSDataString but %s" % self._spaceGroup.__class__.__name__
         raise BaseException(strMessage)
     if resCutOff is None:
         self._resCutOff = None
     elif resCutOff.__class__.__name__ == "XSDataString":
         self._resCutOff = resCutOff
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'resCutOff' is not XSDataString but %s" % self._resCutOff.__class__.__name__
         raise BaseException(strMessage)
     if baseFileName is None:
         self._baseFileName = None
     elif baseFileName.__class__.__name__ == "XSDataString":
         self._baseFileName = baseFileName
     else:
         strMessage = "ERROR! XSDataInputCrystFEL constructor argument 'baseFileName' is not XSDataString but %s" % self._baseFileName.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 20
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
Exemplo n.º 21
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.º 22
0
 def __init__(self, configuration=None, unit_cell_gamma=None, unit_cell_beta=None, unit_cell_alpha=None, unit_cell_c=None, unit_cell_b=None, unit_cell_a=None, space_group=None, input_file=None):
     XSDataInput.__init__(self, configuration)
     if input_file is None:
         self._input_file = None
     elif input_file.__class__.__name__ == "XSDataString":
         self._input_file = input_file
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'input_file' is not XSDataString but %s" % self._input_file.__class__.__name__
         raise BaseException(strMessage)
     if space_group is None:
         self._space_group = None
     elif space_group.__class__.__name__ == "XSDataInteger":
         self._space_group = space_group
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'space_group' is not XSDataInteger but %s" % self._space_group.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_a is None:
         self._unit_cell_a = None
     elif unit_cell_a.__class__.__name__ == "XSDataDouble":
         self._unit_cell_a = unit_cell_a
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_a' is not XSDataDouble but %s" % self._unit_cell_a.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_b is None:
         self._unit_cell_b = None
     elif unit_cell_b.__class__.__name__ == "XSDataDouble":
         self._unit_cell_b = unit_cell_b
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_b' is not XSDataDouble but %s" % self._unit_cell_b.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_c is None:
         self._unit_cell_c = None
     elif unit_cell_c.__class__.__name__ == "XSDataDouble":
         self._unit_cell_c = unit_cell_c
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_c' is not XSDataDouble but %s" % self._unit_cell_c.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_alpha is None:
         self._unit_cell_alpha = None
     elif unit_cell_alpha.__class__.__name__ == "XSDataDouble":
         self._unit_cell_alpha = unit_cell_alpha
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_alpha' is not XSDataDouble but %s" % self._unit_cell_alpha.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_beta is None:
         self._unit_cell_beta = None
     elif unit_cell_beta.__class__.__name__ == "XSDataDouble":
         self._unit_cell_beta = unit_cell_beta
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_beta' is not XSDataDouble but %s" % self._unit_cell_beta.__class__.__name__
         raise BaseException(strMessage)
     if unit_cell_gamma is None:
         self._unit_cell_gamma = None
     elif unit_cell_gamma.__class__.__name__ == "XSDataDouble":
         self._unit_cell_gamma = unit_cell_gamma
     else:
         strMessage = "ERROR! XSDataInputXdsBurnStrategy constructor argument 'unit_cell_gamma' is not XSDataDouble but %s" % self._unit_cell_gamma.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 23
0
 def __init__(self, configuration=None, cell=None, symm=None, masterH5=None, refMTZ=None, anomalous=None, highResolutionLimit=None, lowResolutionLimit=None, identifier=None):
     XSDataInput.__init__(self, configuration)
     if identifier is None:
         self._identifier = []
     elif identifier.__class__.__name__ == "list":
         self._identifier = identifier
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'identifier' is not list but %s" % self._identifier.__class__.__name__
         raise BaseException(strMessage)
     if lowResolutionLimit is None:
         self._lowResolutionLimit = None
     elif lowResolutionLimit.__class__.__name__ == "XSDataDouble":
         self._lowResolutionLimit = lowResolutionLimit
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'lowResolutionLimit' is not XSDataDouble but %s" % self._lowResolutionLimit.__class__.__name__
         raise BaseException(strMessage)
     if highResolutionLimit is None:
         self._highResolutionLimit = None
     elif highResolutionLimit.__class__.__name__ == "XSDataDouble":
         self._highResolutionLimit = highResolutionLimit
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'highResolutionLimit' is not XSDataDouble but %s" % self._highResolutionLimit.__class__.__name__
         raise BaseException(strMessage)
     if anomalous is None:
         self._anomalous = None
     elif anomalous.__class__.__name__ == "XSDataBoolean":
         self._anomalous = anomalous
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'anomalous' is not XSDataBoolean but %s" % self._anomalous.__class__.__name__
         raise BaseException(strMessage)
     if refMTZ is None:
         self._refMTZ = None
     elif refMTZ.__class__.__name__ == "XSDataFile":
         self._refMTZ = refMTZ
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'refMTZ' is not XSDataFile but %s" % self._refMTZ.__class__.__name__
         raise BaseException(strMessage)
     if masterH5 is None:
         self._masterH5 = None
     elif masterH5.__class__.__name__ == "XSDataFile":
         self._masterH5 = masterH5
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'masterH5' is not XSDataFile but %s" % self._masterH5.__class__.__name__
         raise BaseException(strMessage)
     if symm is None:
         self._symm = None
     elif symm.__class__.__name__ == "XSDataString":
         self._symm = symm
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'symm' is not XSDataString but %s" % self._symm.__class__.__name__
         raise BaseException(strMessage)
     if cell is None:
         self._cell = None
     elif cell.__class__.__name__ == "XSDataString":
         self._cell = cell
     else:
         strMessage = "ERROR! XSDataInputAutoPROC constructor argument 'cell' is not XSDataString but %s" % self._cell.__class__.__name__
         raise BaseException(strMessage)
 def __init__(self, configuration=None, mtzFile=None, hklFile=None, streamFile=None, imagesFullPath=None, cellFile=None, geomFile=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! XSDataInputControlCrystFEL 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! XSDataInputControlCrystFEL constructor argument 'processDirectory' is not XSDataFile but %s" % self._processDirectory.__class__.__name__
         raise BaseException(strMessage)
     if geomFile is None:
         self._geomFile = None
     elif geomFile.__class__.__name__ == "XSDataString":
         self._geomFile = geomFile
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'geomFile' is not XSDataString but %s" % self._geomFile.__class__.__name__
         raise BaseException(strMessage)
     if cellFile is None:
         self._cellFile = None
     elif cellFile.__class__.__name__ == "XSDataString":
         self._cellFile = cellFile
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'cellFile' is not XSDataString but %s" % self._cellFile.__class__.__name__
         raise BaseException(strMessage)
     if imagesFullPath is None:
         self._imagesFullPath = None
     elif imagesFullPath.__class__.__name__ == "XSDataString":
         self._imagesFullPath = imagesFullPath
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'imagesFullPath' is not XSDataString but %s" % self._imagesFullPath.__class__.__name__
         raise BaseException(strMessage)
     if streamFile is None:
         self._streamFile = None
     elif streamFile.__class__.__name__ == "XSDataString":
         self._streamFile = streamFile
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'streamFile' is not XSDataString but %s" % self._streamFile.__class__.__name__
         raise BaseException(strMessage)
     if hklFile is None:
         self._hklFile = None
     elif hklFile.__class__.__name__ == "XSDataString":
         self._hklFile = hklFile
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'hklFile' is not XSDataString but %s" % self._hklFile.__class__.__name__
         raise BaseException(strMessage)
     if mtzFile is None:
         self._mtzFile = None
     elif mtzFile.__class__.__name__ == "XSDataString":
         self._mtzFile = mtzFile
     else:
         strMessage = "ERROR! XSDataInputControlCrystFEL constructor argument 'mtzFile' is not XSDataString but %s" % self._mtzFile.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 25
0
 def __init__(self, configuration=None, data=None):
     XSDataInput.__init__(self, configuration)
     if data is None:
         self._data = None
     elif data.__class__.__name__ == "XSDataArray":
         self._data = data
     else:
         strMessage = "ERROR! XSDataInputJesf constructor argument 'data' is not XSDataArray but %s" % self._data.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 26
0
	def __init__(self, configuration=None, fileGraph=None, characterisationResult=None):
		XSDataInput.__init__(self, configuration)
		checkType("XSDataInputSimpleHTMLPage", "Constructor of XSDataInputSimpleHTMLPage", characterisationResult, "XSDataResultCharacterisation")
		self.__characterisationResult = characterisationResult
		if fileGraph is None:
			self.__fileGraph = []
		else:
			checkType("XSDataInputSimpleHTMLPage", "Constructor of XSDataInputSimpleHTMLPage", fileGraph, "list")
			self.__fileGraph = fileGraph
 def __init__(self, configuration=None, image=None):
     XSDataInput.__init__(self, configuration)
     if image is None:
         self._image = []
     elif image.__class__.__name__ == "list":
         self._image = image
     else:
         strMessage = "ERROR! XSDataInputControlBackground3D constructor argument 'image' is not list but %s" % self._image.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 28
0
	def __init__(self, configuration=None, energyCalibration=None, inputFile=None):
		XSDataInput.__init__(self, configuration)
	
	
		if inputFile is None:
			self._inputFile = []
		else:
			checkType("XSDataInputReadDataID24", "Constructor of XSDataInputReadDataID24", inputFile, "list")
			self._inputFile = inputFile
		checkType("XSDataInputReadDataID24", "Constructor of XSDataInputReadDataID24", energyCalibration, "XSDataEnergyCalibration")
		self._energyCalibration = energyCalibration
Exemplo n.º 29
0
	def __init__(self, configuration=None, detector=None, subWedge=None, job=None):
		XSDataInput.__init__(self, configuration)
		if job is None:
			self.__job = []
		else:
			checkType("XSDataInputXDSSpotSearch", "Constructor of XSDataInputXDSSpotSearch", job, "XSDataString")
			self.__job = job
		checkType("XSDataInputXDSSpotSearch", "Constructor of XSDataInputXDSSpotSearch", subWedge, "XSDataXDSSubWedge")
		self.__subWedge = subWedge
		checkType("XSDataInputXDSSpotSearch", "Constructor of XSDataInputXDSSpotSearch", detector, "XSDataXDSDetector")
		self.__detector = detector
Exemplo n.º 30
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.º 31
0
 def __init__(self,
              configuration=None,
              outputMatrix=None,
              inputMatrix=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputMatrixInvertv2",
               "Constructor of XSDataInputMatrixInvertv2", inputMatrix,
               "XSDataImageExt")
     self.__inputMatrix = inputMatrix
     checkType("XSDataInputMatrixInvertv2",
               "Constructor of XSDataInputMatrixInvertv2", outputMatrix,
               "XSDataImageExt")
     self.__outputMatrix = outputMatrix
Exemplo n.º 32
0
 def __init__(self,
              configuration=None,
              outputMatrixFile=None,
              inputMatrix=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputWriteMatrix",
               "Constructor of XSDataInputWriteMatrix", inputMatrix,
               "XSDataArray")
     self.__inputMatrix = inputMatrix
     checkType("XSDataInputWriteMatrix",
               "Constructor of XSDataInputWriteMatrix", outputMatrixFile,
               "XSDataFile")
     self.__outputMatrixFile = outputMatrixFile
Exemplo n.º 33
0
 def __init__(self,
              configuration=None,
              outputMatrixFile=None,
              inputMatrixFile=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputMatrixInvertFile",
               "Constructor of XSDataInputMatrixInvertFile",
               inputMatrixFile, "XSDataFile")
     self.__inputMatrixFile = inputMatrixFile
     checkType("XSDataInputMatrixInvertFile",
               "Constructor of XSDataInputMatrixInvertFile",
               outputMatrixFile, "XSDataFile")
     self.__outputMatrixFile = outputMatrixFile
Exemplo n.º 34
0
	def __init__(self, configuration=None, threshold=None, stem=None, outputStem=None, numberOfDigits=None, indexMin=None, indexMax=None, imageFormat=None, darkFile=None):
		XSDataInput.__init__(self, configuration)
		self.__darkFile = darkFile
		self.__imageFormat = imageFormat
		self.__indexMax = indexMax
		self.__indexMin = indexMin
		self.__numberOfDigits = numberOfDigits
		self.__outputStem = outputStem
		self.__stem = stem
		if threshold is None:
			self.__threshold = []
		else:
			self.__threshold = threshold
 def __init__(self, configuration=None, doAnomAndNonanom=None, processDirectory=None, toN=None, fromN=None, templateN=None, dirN=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! XSDataInputControlAutoPROC constructor argument 'dataCollectionId' is not XSDataInteger but %s" % self._dataCollectionId.__class__.__name__
         raise BaseException(strMessage)
     if dirN is None:
         self._dirN = None
     elif dirN.__class__.__name__ == "XSDataFile":
         self._dirN = dirN
     else:
         strMessage = "ERROR! XSDataInputControlAutoPROC constructor argument 'dirN' is not XSDataFile but %s" % self._dirN.__class__.__name__
         raise BaseException(strMessage)
     if templateN is None:
         self._templateN = None
     elif templateN.__class__.__name__ == "XSDataString":
         self._templateN = templateN
     else:
         strMessage = "ERROR! XSDataInputControlAutoPROC constructor argument 'templateN' is not XSDataString but %s" % self._templateN.__class__.__name__
         raise BaseException(strMessage)
     if fromN is None:
         self._fromN = None
     elif fromN.__class__.__name__ == "XSDataInteger":
         self._fromN = fromN
     else:
         strMessage = "ERROR! XSDataInputControlAutoPROC constructor argument 'fromN' is not XSDataInteger but %s" % self._fromN.__class__.__name__
         raise BaseException(strMessage)
     if toN is None:
         self._toN = None
     elif toN.__class__.__name__ == "XSDataInteger":
         self._toN = toN
     else:
         strMessage = "ERROR! XSDataInputControlAutoPROC constructor argument 'toN' is not XSDataInteger but %s" % self._toN.__class__.__name__
         raise BaseException(strMessage)
     if processDirectory is None:
         self._processDirectory = None
     elif processDirectory.__class__.__name__ == "XSDataFile":
         self._processDirectory = processDirectory
     else:
         strMessage = "ERROR! XSDataInputControlAutoPROC 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! XSDataInputControlAutoPROC constructor argument 'doAnomAndNonanom' is not XSDataBoolean but %s" % self._doAnomAndNonanom.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 36
0
 def __init__(self,
              configuration=None,
              endFrame=None,
              startFrame=None,
              unitCell=None,
              spaceGroup=None,
              anomalous=None,
              image=None):
     XSDataInput.__init__(self, configuration)
     if image is None:
         self._image = []
     elif image.__class__.__name__ == "list":
         self._image = image
     else:
         strMessage = "ERROR! XSDataInputXia2DIALS constructor argument 'image' is not list but %s" % self._image.__class__.__name__
         raise BaseException(strMessage)
     if anomalous is None:
         self._anomalous = None
     elif anomalous.__class__.__name__ == "XSDataBoolean":
         self._anomalous = anomalous
     else:
         strMessage = "ERROR! XSDataInputXia2DIALS constructor argument 'anomalous' is not XSDataBoolean but %s" % self._anomalous.__class__.__name__
         raise BaseException(strMessage)
     if spaceGroup is None:
         self._spaceGroup = None
     elif spaceGroup.__class__.__name__ == "XSDataString":
         self._spaceGroup = spaceGroup
     else:
         strMessage = "ERROR! XSDataInputXia2DIALS 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! XSDataInputXia2DIALS 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! XSDataInputXia2DIALS 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! XSDataInputXia2DIALS constructor argument 'endFrame' is not XSDataInteger but %s" % self._endFrame.__class__.__name__
         raise BaseException(strMessage)
 def __init__(self, configuration=None, endFrame=None, startFrame=None, unitCell=None, spaceGroup=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)
     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)
Exemplo n.º 38
0
 def __init__(self, configuration=None, endImageNumber=None, startImageNumber=None, forcedOutputImageNumber=None, forcedOutputDirectory=None, hdf5File=None, hdf5ImageNumber=None, imageNumber=None):
     XSDataInput.__init__(self, configuration)
     if imageNumber is None:
         self._imageNumber = None
     elif imageNumber.__class__.__name__ == "XSDataInteger":
         self._imageNumber = imageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'imageNumber' is not XSDataInteger but %s" % self._imageNumber.__class__.__name__
         raise BaseException(strMessage)
     if hdf5ImageNumber is None:
         self._hdf5ImageNumber = None
     elif hdf5ImageNumber.__class__.__name__ == "XSDataInteger":
         self._hdf5ImageNumber = hdf5ImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'hdf5ImageNumber' is not XSDataInteger but %s" % self._hdf5ImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if hdf5File is None:
         self._hdf5File = None
     elif hdf5File.__class__.__name__ == "XSDataFile":
         self._hdf5File = hdf5File
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'hdf5File' is not XSDataFile but %s" % self._hdf5File.__class__.__name__
         raise BaseException(strMessage)
     if forcedOutputDirectory is None:
         self._forcedOutputDirectory = None
     elif forcedOutputDirectory.__class__.__name__ == "XSDataFile":
         self._forcedOutputDirectory = forcedOutputDirectory
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'forcedOutputDirectory' is not XSDataFile but %s" % self._forcedOutputDirectory.__class__.__name__
         raise BaseException(strMessage)
     if forcedOutputImageNumber is None:
         self._forcedOutputImageNumber = None
     elif forcedOutputImageNumber.__class__.__name__ == "XSDataInteger":
         self._forcedOutputImageNumber = forcedOutputImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'forcedOutputImageNumber' is not XSDataInteger but %s" % self._forcedOutputImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if startImageNumber is None:
         self._startImageNumber = None
     elif startImageNumber.__class__.__name__ == "XSDataInteger":
         self._startImageNumber = startImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'startImageNumber' is not XSDataInteger but %s" % self._startImageNumber.__class__.__name__
         raise BaseException(strMessage)
     if endImageNumber is None:
         self._endImageNumber = None
     elif endImageNumber.__class__.__name__ == "XSDataInteger":
         self._endImageNumber = endImageNumber
     else:
         strMessage = "ERROR! XSDataInputH5ToCBF constructor argument 'endImageNumber' is not XSDataInteger but %s" % self._endImageNumber.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 39
0
 def __init__(self,
              configuration=None,
              phi=None,
              kappa=None,
              omega=None,
              cell=None,
              orientation=None,
              symmetry=None):
     XSDataInput.__init__(self, configuration)
     if symmetry is None:
         self._symmetry = None
     elif symmetry.__class__.__name__ == "XSDataString":
         self._symmetry = symmetry
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'symmetry' is not XSDataString but %s" % self._symmetry.__class__.__name__
         raise BaseException(strMessage)
     if orientation is None:
         self._orientation = None
     elif orientation.__class__.__name__ == "XSDataXOalignOrientation":
         self._orientation = orientation
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'orientation' is not XSDataXOalignOrientation but %s" % self._orientation.__class__.__name__
         raise BaseException(strMessage)
     if cell is None:
         self._cell = None
     elif cell.__class__.__name__ == "XSDataXOalignCell":
         self._cell = cell
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'cell' is not XSDataXOalignCell but %s" % self._cell.__class__.__name__
         raise BaseException(strMessage)
     if omega is None:
         self._omega = None
     elif omega.__class__.__name__ == "XSDataAngle":
         self._omega = omega
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'omega' is not XSDataAngle but %s" % self._omega.__class__.__name__
         raise BaseException(strMessage)
     if kappa is None:
         self._kappa = None
     elif kappa.__class__.__name__ == "XSDataAngle":
         self._kappa = kappa
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'kappa' is not XSDataAngle but %s" % self._kappa.__class__.__name__
         raise BaseException(strMessage)
     if phi is None:
         self._phi = None
     elif phi.__class__.__name__ == "XSDataAngle":
         self._phi = phi
     else:
         strMessage = "ERROR! XSDataInputXOalign constructor argument 'phi' is not XSDataAngle but %s" % self._phi.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 40
0
	def __init__(self, configuration=None, doOnlyIntegrationWithXMLOutput=None, doOnlyImageQualityIndicators=None, storeImageQualityIndicatorsInISPyB=None, diffractionPlan=None, imageFile=None):
		XSDataInput.__init__(self, configuration)
	
	
		checkType("XSDataInputGridScreening", "Constructor of XSDataInputGridScreening", imageFile, "XSDataFile")
		self._imageFile = imageFile
		checkType("XSDataInputGridScreening", "Constructor of XSDataInputGridScreening", diffractionPlan, "XSDataDiffractionPlan")
		self._diffractionPlan = diffractionPlan
		checkType("XSDataInputGridScreening", "Constructor of XSDataInputGridScreening", storeImageQualityIndicatorsInISPyB, "XSDataBoolean")
		self._storeImageQualityIndicatorsInISPyB = storeImageQualityIndicatorsInISPyB
		checkType("XSDataInputGridScreening", "Constructor of XSDataInputGridScreening", doOnlyImageQualityIndicators, "XSDataBoolean")
		self._doOnlyImageQualityIndicators = doOnlyImageQualityIndicators
		checkType("XSDataInputGridScreening", "Constructor of XSDataInputGridScreening", doOnlyIntegrationWithXMLOutput, "XSDataBoolean")
		self._doOnlyIntegrationWithXMLOutput = doOnlyIntegrationWithXMLOutput
	def __init__(self, configuration=None, query=None, item=None, flush=None):
		XSDataInput.__init__(self, configuration)
		checkType("XSDataInputAccumulator", "Constructor of XSDataInputAccumulator", flush, "XSDataBoolean")
		self.__flush = flush
		if item is None:
			self.__item = []
		else:
			checkType("XSDataInputAccumulator", "Constructor of XSDataInputAccumulator", item, "list")
			self.__item = item
		if query is None:
			self.__query = []
		else:
			checkType("XSDataInputAccumulator", "Constructor of XSDataInputAccumulator", query, "list")
			self.__query = query
Exemplo n.º 42
0
	def __init__(self, configuration=None, nexusGroup=None, outputFileDirectory=None, outputFileName=None, instrument=None):
		XSDataInput.__init__(self, configuration)
	
	
		checkType("XSDataInputWriteNexusFile", "Constructor of XSDataInputWriteNexusFile", instrument, "XSDataString")
		self._instrument = instrument
		checkType("XSDataInputWriteNexusFile", "Constructor of XSDataInputWriteNexusFile", outputFileName, "XSDataString")
		self._outputFileName = outputFileName
		checkType("XSDataInputWriteNexusFile", "Constructor of XSDataInputWriteNexusFile", outputFileDirectory, "XSDataFile")
		self._outputFileDirectory = outputFileDirectory
		if nexusGroup is None:
			self._nexusGroup = []
		else:
			checkType("XSDataInputWriteNexusFile", "Constructor of XSDataInputWriteNexusFile", nexusGroup, "list")
			self._nexusGroup = nexusGroup
Exemplo n.º 43
0
	def __init__(self, configuration=None, projectName=None, verbosity=None, docType=None, sources=None, docPath=None):
		XSDataInput.__init__(self, configuration)
		checkType("XSDataInputEpydoc", "Constructor of XSDataInputEpydoc", docPath, "XSDataFile")
		self.__docPath = docPath
		if sources is None:
			self.__sources = []
		else:
			checkType("XSDataInputEpydoc", "Constructor of XSDataInputEpydoc", sources, "list")
			self.__sources = sources
		checkType("XSDataInputEpydoc", "Constructor of XSDataInputEpydoc", docType, "XSDataString")
		self.__docType = docType
		checkType("XSDataInputEpydoc", "Constructor of XSDataInputEpydoc", verbosity, "XSDataInteger")
		self.__verbosity = verbosity
		checkType("XSDataInputEpydoc", "Constructor of XSDataInputEpydoc", projectName, "XSDataString")
		self.__projectName = projectName
Exemplo n.º 44
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.º 45
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
Exemplo n.º 46
0
	def __init__(self, configuration=None, format=None, output=None, labin=None, mtzfile=None):
		XSDataInput.__init__(self, configuration)
	
	
		checkType("XSDataInputMtz2Various", "Constructor of XSDataInputMtz2Various", mtzfile, "XSDataFile")
		self._mtzfile = mtzfile
		if labin is None:
			self._labin = []
		else:
			checkType("XSDataInputMtz2Various", "Constructor of XSDataInputMtz2Various", labin, "list")
			self._labin = labin
		checkType("XSDataInputMtz2Various", "Constructor of XSDataInputMtz2Various", output, "XSDataString")
		self._output = output
		checkType("XSDataInputMtz2Various", "Constructor of XSDataInputMtz2Various", format, "XSDataString")
		self._format = format
Exemplo n.º 47
0
 def __init__(self, configuration=None, anomalous=None, image=None):
     XSDataInput.__init__(self, configuration)
     if image is None:
         self._image = []
     elif image.__class__.__name__ == "list":
         self._image = image
     else:
         strMessage = "ERROR! XSDataInputXia2DIALS constructor argument 'image' is not list but %s" % self._image.__class__.__name__
         raise BaseException(strMessage)
     if anomalous is None:
         self._anomalous = None
     elif anomalous.__class__.__name__ == "XSDataBoolean":
         self._anomalous = anomalous
     else:
         strMessage = "ERROR! XSDataInputXia2DIALS constructor argument 'anomalous' is not XSDataBoolean but %s" % self._anomalous.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 48
0
	def __init__(self, configuration=None, pathToDataArray=None, pathToEnergyArray=None, dataArray=None, energy=None, instrument=None, nexusFileName=None):
		XSDataInput.__init__(self, configuration)
	
	
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", nexusFileName, "XSDataString")
		self._nexusFileName = nexusFileName
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", instrument, "XSDataString")
		self._instrument = instrument
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", energy, "XSDataArray")
		self._energy = energy
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", dataArray, "XSDataArray")
		self._dataArray = dataArray
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", pathToEnergyArray, "XSDataFile")
		self._pathToEnergyArray = pathToEnergyArray
		checkType("XSDataInputTRExafs", "Constructor of XSDataInputTRExafs", pathToDataArray, "XSDataFile")
		self._pathToDataArray = pathToDataArray
Exemplo n.º 49
0
 def __init__(self,
              configuration=None,
              fileGraph=None,
              characterisationResult=None):
     XSDataInput.__init__(self, configuration)
     checkType("XSDataInputSimpleHTMLPage",
               "Constructor of XSDataInputSimpleHTMLPage",
               characterisationResult, "XSDataResultCharacterisation")
     self.__characterisationResult = characterisationResult
     if fileGraph is None:
         self.__fileGraph = []
     else:
         checkType("XSDataInputSimpleHTMLPage",
                   "Constructor of XSDataInputSimpleHTMLPage", fileGraph,
                   "list")
         self.__fileGraph = fileGraph
Exemplo n.º 50
0
 def __init__(self, configuration=None, nSkipHeader=None, inputFile=None):
     XSDataInput.__init__(self, configuration)
     if inputFile is None:
         self._inputFile = None
     elif inputFile.__class__.__name__ == "XSDataFile":
         self._inputFile = inputFile
     else:
         strMessage = "ERROR! XSDataInputReadDataBM23 constructor argument 'inputFile' is not XSDataFile but %s" % self._inputFile.__class__.__name__
         raise BaseException(strMessage)
     if nSkipHeader is None:
         self._nSkipHeader = None
     elif nSkipHeader.__class__.__name__ == "XSDataInteger":
         self._nSkipHeader = nSkipHeader
     else:
         strMessage = "ERROR! XSDataInputReadDataBM23 constructor argument 'nSkipHeader' is not XSDataInteger but %s" % self._nSkipHeader.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 51
0
 def __init__(self, configuration=None, nSkipHeader=None, inputFile=None):
     XSDataInput.__init__(self, configuration)
     if inputFile is None:
         self._inputFile = None
     elif inputFile.__class__.__name__ == "XSDataFile":
         self._inputFile = inputFile
     else:
         strMessage = "ERROR! XSDataInputReadDataBM23 constructor argument 'inputFile' is not XSDataFile but %s" % self._inputFile.__class__.__name__
         raise BaseException(strMessage)
     if nSkipHeader is None:
         self._nSkipHeader = None
     elif nSkipHeader.__class__.__name__ == "XSDataInteger":
         self._nSkipHeader = nSkipHeader
     else:
         strMessage = "ERROR! XSDataInputReadDataBM23 constructor argument 'nSkipHeader' is not XSDataInteger but %s" % self._nSkipHeader.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 52
0
 def __init__(self, configuration=None, inputFile=None, elementName=None):
     XSDataInput.__init__(self, configuration)
     if elementName is None:
         self._elementName = None
     elif elementName.__class__.__name__ == "XSDataString":
         self._elementName = elementName
     else:
         strMessage = "ERROR! XSDataInputCalibrateEnergy constructor argument 'elementName' is not XSDataString but %s" % self._elementName.__class__.__name__
         raise BaseException(strMessage)
     if inputFile is None:
         self._inputFile = None
     elif inputFile.__class__.__name__ == "XSDataFile":
         self._inputFile = inputFile
     else:
         strMessage = "ERROR! XSDataInputCalibrateEnergy constructor argument 'inputFile' is not XSDataFile but %s" % self._inputFile.__class__.__name__
         raise BaseException(strMessage)
Exemplo n.º 53
0
 def __init__(self, configuration=None, qMax=None, qMin=None, plotFit=None, onlyGnom=None, iNbThreads=None, mode=None, symmetry=None, angularUnits=None, rMaxSearchSettings=None, experimentalDataFile=None, experimentalDataStdArray=None, experimentalDataStdDev=None, experimentalDataIArray=None, experimentalDataValues=None, experimentalDataQArray=None, experimentalDataQ=None, title=None):
     XSDataInput.__init__(self, configuration)
 
 
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", title, "XSDataString")
     self._title = title
     if experimentalDataQ is None:
         self._experimentalDataQ = []
     else:
         checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataQ, "list")
         self._experimentalDataQ = experimentalDataQ
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataQArray, "XSDataArray")
     self._experimentalDataQArray = experimentalDataQArray
     if experimentalDataValues is None:
         self._experimentalDataValues = []
     else:
         checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataValues, "list")
         self._experimentalDataValues = experimentalDataValues
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataIArray, "XSDataArray")
     self._experimentalDataIArray = experimentalDataIArray
     if experimentalDataStdDev is None:
         self._experimentalDataStdDev = []
     else:
         checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataStdDev, "list")
         self._experimentalDataStdDev = experimentalDataStdDev
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataStdArray, "XSDataArray")
     self._experimentalDataStdArray = experimentalDataStdArray
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", experimentalDataFile, "XSDataFile")
     self._experimentalDataFile = experimentalDataFile
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", rMaxSearchSettings, "XSDataSolutionScatteringSettings")
     self._rMaxSearchSettings = rMaxSearchSettings
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", angularUnits, "XSDataInteger")
     self._angularUnits = angularUnits
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", symmetry, "XSDataString")
     self._symmetry = symmetry
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", mode, "XSDataString")
     self._mode = mode
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", iNbThreads, "XSDataInteger")
     self._iNbThreads = iNbThreads
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", onlyGnom, "XSDataBoolean")
     self._onlyGnom = onlyGnom
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", plotFit, "XSDataBoolean")
     self._plotFit = plotFit
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", qMin, "XSDataDouble")
     self._qMin = qMin
     checkType("XSDataInputSolutionScattering", "Constructor of XSDataInputSolutionScattering", qMax, "XSDataDouble")
     self._qMax = qMax
Exemplo n.º 54
0
    def __init__(self,
                 configuration=None,
                 energyCalibration=None,
                 inputFile=None):
        XSDataInput.__init__(self, configuration)

        if inputFile is None:
            self._inputFile = []
        else:
            checkType("XSDataInputReadDataID24",
                      "Constructor of XSDataInputReadDataID24", inputFile,
                      "list")
            self._inputFile = inputFile
        checkType("XSDataInputReadDataID24",
                  "Constructor of XSDataInputReadDataID24", energyCalibration,
                  "XSDataEnergyCalibration")
        self._energyCalibration = energyCalibration