Пример #1
0
	def __init__(self, inputCharacterisation=None, comments=None, shortComments=None, dataCollectionId=None, transmission=None, wavelength=None, beamPosY=None, beamPosX=None, resultsFilePath=None, generatedTemplateFile=None, templateMode=None, beamSizeY=None, beamSizeX=None, beamSize=None, minExposureTimePerImage=None, flux=None, imagePath=None, sample=None, diffractionPlan=None, experimentalCondition=None, phi=None, kappa=None, omega=None, possibleOrientations=None, mxv2DataCollection_Reference=None, mxv2DataCollection=None, mxv1ResultCharacterisation_Reference=None, mxv1InputCharacterisation=None):
		XSDataInputInterface.__init__(self, inputCharacterisation, comments, shortComments, dataCollectionId, transmission, wavelength, beamPosY, beamPosX, resultsFilePath, generatedTemplateFile, templateMode, beamSizeY, beamSizeX, beamSize, minExposureTimePerImage, flux, imagePath, sample, diffractionPlan, experimentalCondition)
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", mxv1InputCharacterisation, "XSDataInputCharacterisation")
		self.__mxv1InputCharacterisation = mxv1InputCharacterisation
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", mxv1ResultCharacterisation_Reference, "XSDataResultCharacterisation")
		self.__mxv1ResultCharacterisation_Reference = mxv1ResultCharacterisation_Reference
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", mxv2DataCollection, "XSDataCollection")
		self.__mxv2DataCollection = mxv2DataCollection
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", mxv2DataCollection_Reference, "XSDataCollection")
		self.__mxv2DataCollection_Reference = mxv2DataCollection_Reference
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", possibleOrientations, "kappa_alignment_response")
		self.__possibleOrientations = possibleOrientations
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", omega, "XSDataAngle")
		self.__omega = omega
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", kappa, "XSDataAngle")
		self.__kappa = kappa
		checkType("XSDataInputInterfacev2_2", "Constructor of XSDataInputInterfacev2_2", phi, "XSDataAngle")
		self.__phi = phi
Пример #2
0
 def __init__(self,
              inputCharacterisation=None,
              comments=None,
              shortComments=None,
              dataCollectionId=None,
              transmission=None,
              wavelength=None,
              beamPosY=None,
              beamPosX=None,
              resultsFilePath=None,
              generatedTemplateFile=None,
              templateMode=None,
              beamSizeY=None,
              beamSizeX=None,
              beamSize=None,
              minExposureTimePerImage=None,
              flux=None,
              imagePath=None,
              sample=None,
              diffractionPlan=None,
              experimentalCondition=None,
              phi=None,
              kappa=None,
              omega=None,
              possibleOrientations=None,
              mxv2DataCollection_Reference=None,
              mxv2DataCollection=None,
              mxv1ResultCharacterisation_Reference=None,
              mxv1InputCharacterisation=None):
     XSDataInputInterface.__init__(
         self, inputCharacterisation, comments, shortComments,
         dataCollectionId, transmission, wavelength, beamPosY, beamPosX,
         resultsFilePath, generatedTemplateFile, templateMode, beamSizeY,
         beamSizeX, beamSize, minExposureTimePerImage, flux, imagePath,
         sample, diffractionPlan, experimentalCondition)
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2",
               mxv1InputCharacterisation, "XSDataInputCharacterisation")
     self.__mxv1InputCharacterisation = mxv1InputCharacterisation
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2",
               mxv1ResultCharacterisation_Reference,
               "XSDataResultCharacterisation")
     self.__mxv1ResultCharacterisation_Reference = mxv1ResultCharacterisation_Reference
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2",
               mxv2DataCollection, "XSDataCollection")
     self.__mxv2DataCollection = mxv2DataCollection
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2",
               mxv2DataCollection_Reference, "XSDataCollection")
     self.__mxv2DataCollection_Reference = mxv2DataCollection_Reference
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2",
               possibleOrientations, "kappa_alignment_response")
     self.__possibleOrientations = possibleOrientations
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2", omega,
               "XSDataAngle")
     self.__omega = omega
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2", kappa,
               "XSDataAngle")
     self.__kappa = kappa
     checkType("XSDataInputInterfacev2_2",
               "Constructor of XSDataInputInterfacev2_2", phi,
               "XSDataAngle")
     self.__phi = phi
Пример #3
0
 def __init__(self,
              inputCharacterisation=None,
              comments=None,
              shortComments=None,
              dataCollectionId=None,
              transmission=None,
              wavelength=None,
              beamPosY=None,
              beamPosX=None,
              resultsFilePath=None,
              generatedTemplateFile=None,
              templateMode=None,
              beamSizeY=None,
              beamSizeX=None,
              beamSize=None,
              minExposureTimePerImage=None,
              flux=None,
              imagePath=None,
              sample=None,
              diffractionPlan=None,
              experimentalCondition=None,
              phi=None,
              kappa=None,
              omega=None,
              possibleOrientations=None,
              mxv2DataCollection_Reference=None,
              mxv2DataCollection=None,
              mxv1ResultCharacterisation_Reference=None,
              mxv1InputCharacterisation=None):
     XSDataInputInterface.__init__(
         self, inputCharacterisation, comments, shortComments,
         dataCollectionId, transmission, wavelength, beamPosY, beamPosX,
         resultsFilePath, generatedTemplateFile, templateMode, beamSizeY,
         beamSizeX, beamSize, minExposureTimePerImage, flux, imagePath,
         sample, diffractionPlan, experimentalCondition)
     if mxv1InputCharacterisation is None:
         self._mxv1InputCharacterisation = None
     elif mxv1InputCharacterisation.__class__.__name__ == "XSDataInputCharacterisation":
         self._mxv1InputCharacterisation = mxv1InputCharacterisation
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv1InputCharacterisation' is not XSDataInputCharacterisation but %s" % self._mxv1InputCharacterisation.__class__.__name__
         raise BaseException(strMessage)
     if mxv1ResultCharacterisation_Reference is None:
         self._mxv1ResultCharacterisation_Reference = None
     elif mxv1ResultCharacterisation_Reference.__class__.__name__ == "XSDataResultCharacterisation":
         self._mxv1ResultCharacterisation_Reference = mxv1ResultCharacterisation_Reference
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv1ResultCharacterisation_Reference' is not XSDataResultCharacterisation but %s" % self._mxv1ResultCharacterisation_Reference.__class__.__name__
         raise BaseException(strMessage)
     if mxv2DataCollection is None:
         self._mxv2DataCollection = None
     elif mxv2DataCollection.__class__.__name__ == "XSDataCollection":
         self._mxv2DataCollection = mxv2DataCollection
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv2DataCollection' is not XSDataCollection but %s" % self._mxv2DataCollection.__class__.__name__
         raise BaseException(strMessage)
     if mxv2DataCollection_Reference is None:
         self._mxv2DataCollection_Reference = None
     elif mxv2DataCollection_Reference.__class__.__name__ == "XSDataCollection":
         self._mxv2DataCollection_Reference = mxv2DataCollection_Reference
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv2DataCollection_Reference' is not XSDataCollection but %s" % self._mxv2DataCollection_Reference.__class__.__name__
         raise BaseException(strMessage)
     if possibleOrientations is None:
         self._possibleOrientations = None
     elif possibleOrientations.__class__.__name__ == "kappa_alignment_response":
         self._possibleOrientations = possibleOrientations
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 constructor argument 'possibleOrientations' is not kappa_alignment_response but %s" % self._possibleOrientations.__class__.__name__
         raise BaseException(strMessage)
     if omega is None:
         self._omega = None
     elif omega.__class__.__name__ == "XSDataAngle":
         self._omega = omega
     else:
         strMessage = "ERROR! XSDataInputInterfacev2_2 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! XSDataInputInterfacev2_2 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! XSDataInputInterfacev2_2 constructor argument 'phi' is not XSDataAngle but %s" % self._phi.__class__.__name__
         raise BaseException(strMessage)
Пример #4
0
 def __init__(
     self,
     inputCharacterisation=None,
     comments=None,
     shortComments=None,
     dataCollectionId=None,
     transmission=None,
     wavelength=None,
     beamPosY=None,
     beamPosX=None,
     resultsFilePath=None,
     generatedTemplateFile=None,
     templateMode=None,
     beamSizeY=None,
     beamSizeX=None,
     beamSize=None,
     minExposureTimePerImage=None,
     flux=None,
     imagePath=None,
     sample=None,
     diffractionPlan=None,
     experimentalCondition=None,
     phi=None,
     kappa=None,
     omega=None,
     possibleOrientations=None,
     mxv2DataCollection_Reference=None,
     mxv2DataCollection=None,
     mxv1ResultCharacterisation_Reference=None,
     mxv1InputCharacterisation=None,
 ):
     XSDataInputInterface.__init__(
         self,
         inputCharacterisation,
         comments,
         shortComments,
         dataCollectionId,
         transmission,
         wavelength,
         beamPosY,
         beamPosX,
         resultsFilePath,
         generatedTemplateFile,
         templateMode,
         beamSizeY,
         beamSizeX,
         beamSize,
         minExposureTimePerImage,
         flux,
         imagePath,
         sample,
         diffractionPlan,
         experimentalCondition,
     )
     if mxv1InputCharacterisation is None:
         self._mxv1InputCharacterisation = None
     elif mxv1InputCharacterisation.__class__.__name__ == "XSDataInputCharacterisation":
         self._mxv1InputCharacterisation = mxv1InputCharacterisation
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv1InputCharacterisation' is not XSDataInputCharacterisation but %s"
             % self._mxv1InputCharacterisation.__class__.__name__
         )
         raise BaseException(strMessage)
     if mxv1ResultCharacterisation_Reference is None:
         self._mxv1ResultCharacterisation_Reference = None
     elif mxv1ResultCharacterisation_Reference.__class__.__name__ == "XSDataResultCharacterisation":
         self._mxv1ResultCharacterisation_Reference = mxv1ResultCharacterisation_Reference
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv1ResultCharacterisation_Reference' is not XSDataResultCharacterisation but %s"
             % self._mxv1ResultCharacterisation_Reference.__class__.__name__
         )
         raise BaseException(strMessage)
     if mxv2DataCollection is None:
         self._mxv2DataCollection = None
     elif mxv2DataCollection.__class__.__name__ == "XSDataCollection":
         self._mxv2DataCollection = mxv2DataCollection
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv2DataCollection' is not XSDataCollection but %s"
             % self._mxv2DataCollection.__class__.__name__
         )
         raise BaseException(strMessage)
     if mxv2DataCollection_Reference is None:
         self._mxv2DataCollection_Reference = None
     elif mxv2DataCollection_Reference.__class__.__name__ == "XSDataCollection":
         self._mxv2DataCollection_Reference = mxv2DataCollection_Reference
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 constructor argument 'mxv2DataCollection_Reference' is not XSDataCollection but %s"
             % self._mxv2DataCollection_Reference.__class__.__name__
         )
         raise BaseException(strMessage)
     if possibleOrientations is None:
         self._possibleOrientations = None
     elif possibleOrientations.__class__.__name__ == "kappa_alignment_response":
         self._possibleOrientations = possibleOrientations
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 constructor argument 'possibleOrientations' is not kappa_alignment_response but %s"
             % self._possibleOrientations.__class__.__name__
         )
         raise BaseException(strMessage)
     if omega is None:
         self._omega = None
     elif omega.__class__.__name__ == "XSDataAngle":
         self._omega = omega
     else:
         strMessage = (
             "ERROR! XSDataInputInterfacev2_2 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! XSDataInputInterfacev2_2 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! XSDataInputInterfacev2_2 constructor argument 'phi' is not XSDataAngle but %s"
             % self._phi.__class__.__name__
         )
         raise BaseException(strMessage)