def preProcess(self):
     """
     PreProcess of the execution test: download an EDF file from http://www.edna-site.org
     and remove any existing output file, i.e. /tmp/edna-$USER/stack.h5 
     """
     EDTestCasePluginExecute.preProcess(self)
     self.loadTestImage([ "test_region1_dark_1_0043.edf"])
     strExpectedOutput = self.readAndParseFile (self.getDataInputFile())
     xsDataResultReference = XSDataInputHDF5StackImages.parseString(strExpectedOutput)
Пример #2
0
 def errBack(self, strXMLin):
     """
     This is an example of XMLerr function ... it prints only the name of the file created
     @param srXMLin: The XML string used to launch the job
     @type strXMLin: python string with the input XML
     @rtype: None
     @return: None     
     """
     xsd = XSDataInputHDF5StackImages.parseString(strXMLin)
     print "Error in the processing of : %s" % (self.dict[xsd.index[0].value])
 def preProcess(self):
     """
     PreProcess of the execution test: download an EDF file from http://www.edna-site.org
     and remove any existing output file, i.e. /tmp/edna-$USER/stack.h5 
     """
     EDTestCasePluginExecute.preProcess(self)
     self.loadTestImage([ "test_region1_dark_1_0040.edf"])
     strExpectedOutput = self.readAndParseFile (self.getDataInputFile())
     xsDataResultReference = XSDataInputHDF5StackImages.parseString(strExpectedOutput)
     self.outputFileName = xsDataResultReference.getHDF5File().getPath().getValue()
     EDVerbose.DEBUG(" Output file is %s" % self.outputFileName)
     if not os.path.isdir(os.path.dirname(self.outputFileName)):
         os.makedirs(os.path.dirname(self.outputFileName))
     if self.getClassName() in ["EDTestCasePluginExecuteHDF5StackImagesv10"]:#, "EDTestCasePluginExecuteHDF5StackImagesv10_array"]:
         self.removeDestination()
 def preProcess(self):
     """
     PreProcess of the execution test: download an EDF file from http://www.edna-site.org
     and remove any existing output file, i.e. /tmp/edna-$USER/stack.h5 
     """
     EDTestCasePluginExecute.preProcess(self)
     self.loadTestImage(["test_region1_dark_1_0040.edf"])
     strExpectedOutput = self.readAndParseFile(self.getDataInputFile())
     xsDataResultReference = XSDataInputHDF5StackImages.parseString(
         strExpectedOutput)
     self.outputFileName = xsDataResultReference.getHDF5File().getPath(
     ).getValue()
     EDVerbose.DEBUG(" Output file is %s" % self.outputFileName)
     if not os.path.isdir(os.path.dirname(self.outputFileName)):
         os.makedirs(os.path.dirname(self.outputFileName))
     if self.getClassName() in [
             "EDTestCasePluginExecuteHDF5StackImagesv10"
     ]:  #, "EDTestCasePluginExecuteHDF5StackImagesv10_array"]:
         self.removeDestination()