Exemple #1
0
    def postProcess(self, _edObject=None):
        EDPluginExecProcessScript.postProcess(self)
        EDVerbose.DEBUG("EDPluginExecSaxsAddv1_0.postProcess")
        # Create some output data
        xsDataResult = XSDataResultSaxsAddv1_0()
        if self.outputImage is None:
            self.outputImage = "output.edf"
        if os.path.isfile(self.outputImage):
            xsdFile = XSDataImage()
            xsdFile.setPath(XSDataString(os.path.abspath(self.outputImage)))
            xsDataResult.setOutputImage(xsdFile)

        self.setDataOutput(xsDataResult)
    def postProcess(self, _edObject=None):
        EDPluginExecProcessScript.postProcess(self)
        EDVerbose.DEBUG("EDPluginExecSaxsAddv1_0.postProcess")
        # Create some output data
        xsDataResult = XSDataResultSaxsAddv1_0()
        if self.outputImage is None:
            self.outputImage = "output.edf"
        if os.path.isfile(self.outputImage):
            xsdFile = XSDataImage()
            xsdFile.setPath(XSDataString(os.path.abspath(self.outputImage)))
            xsDataResult.setOutputImage(xsdFile)

        self.setDataOutput(xsDataResult)
    def postProcess(self, _edObject=None):
        EDPluginExecProcessScript.postProcess(self)
        EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0.postProcess")
        # Create some output data
        xsDataResult = XSDataResultSaxsAnglev1_0()
        if self.regroupedDataFile is None:
            self.regroupedDataFile = "output.edf"
        if os.path.isfile(self.regroupedDataFile):
            xsdFile = XSDataImage()
            xsdFile.setPath(XSDataString(os.path.abspath(self.regroupedDataFile)))
#            EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0 xsDataFile: \n%s" % xsdFile.marshal())
            xsDataResult.setRegroupedDataFile(xsdFile)
#            EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0 xsDataResult: \n%s" % xsDataResult.marshal())
        self.setDataOutput(xsDataResult)
Exemple #4
0
    def postProcess(self, _edObject=None):
        EDPluginExecProcessScript.postProcess(self)
        EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0.postProcess")
        # Create some output data
        xsDataResult = XSDataResultSaxsAnglev1_0()
        if self.regroupedDataFile is None:
            self.regroupedDataFile = "output.edf"
        if os.path.isfile(self.regroupedDataFile):
            xsdFile = XSDataImage()
            xsdFile.setPath(
                XSDataString(os.path.abspath(self.regroupedDataFile)))
            #            EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0 xsDataFile: \n%s" % xsdFile.marshal())
            xsDataResult.setRegroupedDataFile(xsdFile)
#            EDVerbose.DEBUG("EDPluginExecSaxsAnglev1_0 xsDataResult: \n%s" % xsDataResult.marshal())
        self.setDataOutput(xsDataResult)
 def testCheckParameters(self):
     EDVerbose.DEBUG(
         "EDTestCasePluginUnitExecSaxsAddv1_0: testCheckParameters")
     xsDataInput = XSDataInputSaxsAddv1_0()
     image1 = XSDataImage()
     image2 = XSDataImage()
     image1.setPath(XSDataString("image1"))
     image2.setPath(XSDataString("image2"))
     xsDataInput.setInputImage([image1, image2])
     edPluginExecSaxsAdd = self.createPlugin()
     edPluginExecSaxsAdd.setDataInput(xsDataInput)
     edPluginExecSaxsAdd.checkParameters()
 def testCheckParameters(self):
     EDVerbose.DEBUG("EDTestCasePluginUnitExecSaxsAddv1_0: testCheckParameters")
     xsDataInput = XSDataInputSaxsAddv1_0()
     image1 = XSDataImage()
     image2 = XSDataImage()
     image1.setPath(XSDataString("image1"))
     image2.setPath(XSDataString("image2"))
     xsDataInput.setInputImage([image1, image2])
     edPluginExecSaxsAdd = self.createPlugin()
     edPluginExecSaxsAdd.setDataInput(xsDataInput)
     edPluginExecSaxsAdd.checkParameters()