Exemplo n.º 1
0
    def checkParameters(self):
        """
        Checks the data input object
        """

        EDPluginExecProcessScript.checkParameters(self)
        # Checks the mandatory parameters:

        self.checkMandatoryParameters(self.getDataInput(),
                                      "Data Input is None")
        self.checkMandatoryParameters(self.getDataInput().getCrystalCell(),
                                      "crystalCell")
        self.checkMandatoryParameters(self.getDataInput().getBeamWavelength(),
                                      "beamWavelength")
        self.checkMandatoryParameters(self.getDataInput().getBeamFlux(),
                                      "beamFlux")
        self.checkMandatoryParameters(self.getDataInput().getBeamSize(),
                                      "beamSize")

        # self.checkMandatoryParameters( self.getDataInput().getCrystalSize(), "crystalSize")
        # Default is 0.1 0.1 0.1

        # Default is 0.1 0.1
        # self.checkMandatoryParameters( self.getDataInput().getBeamExposureTime(), "beamExposureTime")
        # self.checkMandatoryParameters( self.getDataInput().getNumberOfImages(), "numberOfImages")

        self.checkImportantParameters(
            self.getDataInput().getCrystalNMON(),
            "NMON (Check your Crystal chemical composition consistency)")
    def checkParameters(self):
        """
        Checks the data input object
        """

        EDPluginExecProcessScript.checkParameters(self)
        # Checks the mandatory parameters:

        self.checkMandatoryParameters(self.getDataInput(), "Data Input is None")
        self.checkMandatoryParameters(self.getDataInput().getCrystalCell(), "crystalCell")
        self.checkMandatoryParameters(self.getDataInput().getBeamWavelength(), "beamWavelength")
        self.checkMandatoryParameters(self.getDataInput().getBeamFlux(), "beamFlux")
        self.checkMandatoryParameters(self.getDataInput().getBeamSize(), "beamSize")

        #self.checkMandatoryParameters( self.getDataInput().getCrystalSize(), "crystalSize")
        # Default is 0.1 0.1 0.1

        # Default is 0.1 0.1
        # self.checkMandatoryParameters( self.getDataInput().getBeamExposureTime(), "beamExposureTime")
        # self.checkMandatoryParameters( self.getDataInput().getNumberOfImages(), "numberOfImages")

        self.checkImportantParameters(self.getDataInput().getCrystalNMON(), "NMON (Check your Crystal chemical composition consistency)")