Ejemplo n.º 1
0
 def postProcess(self, _edObject=None):
     """
     Parses the labelit.screen log file and the generated MOSFLM script
     """
     EDPluginExecProcessScript.postProcess(self, _edObject)
     self.DEBUG("EDPluginLabelitv10.postProcess...")
     strLabelitLog = self.readProcessLogFile()
     if strLabelitLog is None:
         errorMessage = EDMessage.ERROR_EXECUTION_03 % (
             "EDPluginLabelitv10.postProcess",
             self.getClassName(),
             "Could not read the Labelit log file",
         )
         self.error(errorMessage)
         self.addErrorMessage(errorMessage)
     else:
         xsDataLabelitScreenOutput = self.parseLabelitScreenOutput(strLabelitLog)
         xsDataIntegerSelectedSolutionNumber = xsDataLabelitScreenOutput.getSelectedSolutionNumber()
         if xsDataIntegerSelectedSolutionNumber is None:
             errorMessage = EDMessage.ERROR_EXECUTION_03 % (
                 "EDPluginLabelitv10.postProcess",
                 self.getClassName(),
                 "No selected solution",
             )
             self.error(errorMessage)
             self.addErrorMessage(errorMessage)
         else:
             strLabelitMosflmScriptsOutput = self.readProcessFile(
                 self.generateMosflmScriptName(xsDataIntegerSelectedSolutionNumber.getValue())
             )
             xsDataLabelitMosflmScriptsOutput = self.parseMosflmScriptsOutput(strLabelitMosflmScriptsOutput)
             xsDataResultLabelit = XSDataResultLabelit()
             xsDataResultLabelit.setLabelitScreenOutput(xsDataLabelitScreenOutput)
             xsDataResultLabelit.setLabelitMosflmScriptsOutput(xsDataLabelitMosflmScriptsOutput)
             self.setDataOutput(xsDataResultLabelit)
Ejemplo n.º 2
0
 def postProcess(self, _edObject=None):
     """
     Parses the labelit.screen log file and the generated MOSFLM script
     """
     EDPluginExecProcessScript.postProcess(self, _edObject)
     self.DEBUG("EDPluginLabelitv10.postProcess...")
     strLabelitLog = self.readProcessLogFile()
     if (strLabelitLog is None):
         errorMessage = EDMessage.ERROR_EXECUTION_03 % ("EDPluginLabelitv10.postProcess", self.getClassName(), "Could not read the Labelit log file")
         self.error(errorMessage)
         self.addErrorMessage(errorMessage)
     else:
         xsDataLabelitScreenOutput = self.parseLabelitScreenOutput(strLabelitLog)
         xsDataIntegerSelectedSolutionNumber = xsDataLabelitScreenOutput.getSelectedSolutionNumber()
         if (xsDataIntegerSelectedSolutionNumber is None):
             errorMessage = EDMessage.ERROR_EXECUTION_03 % ("EDPluginLabelitv10.postProcess", self.getClassName(), "No selected solution")
             self.error(errorMessage)
             self.addErrorMessage(errorMessage)
         else:
             strLabelitMosflmScriptsOutput = self.readProcessFile(self.generateMosflmScriptName(xsDataIntegerSelectedSolutionNumber.getValue()))
             xsDataLabelitMosflmScriptsOutput = self.parseMosflmScriptsOutput(strLabelitMosflmScriptsOutput)
             xsDataResultLabelit = XSDataResultLabelit()
             xsDataResultLabelit.setLabelitScreenOutput(xsDataLabelitScreenOutput)
             xsDataResultLabelit.setLabelitMosflmScriptsOutput(xsDataLabelitMosflmScriptsOutput)
             self.setDataOutput(xsDataResultLabelit)