def postProcess(self, _edObject=None): """ Parses the labelit.screen log file and the generated MOSFLM script """ EDPluginLabelitv1_1.postProcess(self, _edObject) EDVerbose.DEBUG("EDPluginLabelitIndexingv1_1.postProcess...") strLabelitLog = self.readProcessLogFile() if (strLabelitLog is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Could not read the Labelit log file" EDVerbose.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataLabelitScreenOutput = self.parseLabelitScreenOutput(strLabelitLog) if xsDataLabelitScreenOutput is None: strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Cannot parse output" EDVerbose.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataIntegerSelectedSolutionNumber = xsDataLabelitScreenOutput.getSelectedSolutionNumber() if (xsDataIntegerSelectedSolutionNumber is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : No selected solution" EDVerbose.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: strLabelitMosflmScriptsOutput = self.readProcessFile(self.generateMosflmScriptName(xsDataIntegerSelectedSolutionNumber.getValue())) xsDataLabelitMosflmScriptsOutput = self.parseMosflmScriptsOutput(strLabelitMosflmScriptsOutput) self.setDataOutput(xsDataLabelitScreenOutput, "labelitScreenOutput") self.setDataOutput(xsDataLabelitMosflmScriptsOutput, "mosflmScriptsOutput")
def postProcess(self, _edObject=None): """ Parses the labelit.screen log file and the generated MOSFLM script """ EDPluginLabelitv1_1.postProcess(self, _edObject) self.DEBUG("EDPluginLabelitIndexingv1_1.postProcess...") strLabelitLog = self.readProcessLogFile() if (strLabelitLog is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Could not read the Labelit log file" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataLabelitScreenOutput = self.parseLabelitScreenOutput(strLabelitLog) if xsDataLabelitScreenOutput is None: strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Cannot parse output" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataIntegerSelectedSolutionNumber = xsDataLabelitScreenOutput.getSelectedSolutionNumber() if (xsDataIntegerSelectedSolutionNumber is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : No selected solution" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: strLabelitMosflmScriptsOutput = self.readProcessFile(self.generateMosflmScriptName(xsDataIntegerSelectedSolutionNumber.getValue())) xsDataLabelitMosflmScriptsOutput = self.parseMosflmScriptsOutput(strLabelitMosflmScriptsOutput) # Path to log file xsDataLabelitScreenOutput.setPathToLogFile(XSDataFile(XSDataString(os.path.join(self.getWorkingDirectory(), self.getScriptLogFileName())))) self.dataOutput.screenOutput = xsDataLabelitScreenOutput self.dataOutput.mosflmScriptsOutput = xsDataLabelitMosflmScriptsOutput
def postProcess(self, _edObject=None): """ Parses the labelit.screen log file and the generated MOSFLM script """ EDPluginLabelitv1_1.postProcess(self, _edObject) EDVerbose.DEBUG("EDPluginLabelitDistlv1_1.postProcess") strLabelitDistlLog = self.readProcessLogFile() if (strLabelitDistlLog is None): strErrorMessage = "EDPluginLabelitDistlv1_1.postProcess : Could not read the Labelit log file" EDVerbose.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataImageQualityIndicators = self.parseLabelitDistlOutput(strLabelitDistlLog) xsDataImage = self.getDataInput("referenceImage")[0] xsDataImageQualityIndicators.setImage(xsDataImage) self.setDataOutput(xsDataImageQualityIndicators, "imageQualityIndicators")
def postProcess(self, _edObject=None): """ Parses the labelit.screen log file and the generated MOSFLM script """ EDPluginLabelitv1_1.postProcess(self, _edObject) self.DEBUG("EDPluginLabelitDistlv1_1.postProcess") strLabelitDistlLog = self.readProcessLogFile() if (strLabelitDistlLog is None): strErrorMessage = "EDPluginLabelitDistlv1_1.postProcess : Could not read the Labelit log file" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataImageQualityIndicators = self.parseLabelitDistlOutput(strLabelitDistlLog) xsDataImage = self.getDataInput("referenceImage")[0] xsDataImageQualityIndicators.setImage(xsDataImage) self.setDataOutput(xsDataImageQualityIndicators, "imageQualityIndicators")
def postProcess(self, _edObject=None): """ Parses the labelit.screen log file and the generated MOSFLM script """ EDPluginLabelitv1_1.postProcess(self, _edObject) self.DEBUG("EDPluginLabelitIndexingv1_1.postProcess...") strLabelitLog = self.readProcessLogFile() if (strLabelitLog is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Could not read the Labelit log file" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataLabelitScreenOutput = self.parseLabelitScreenOutput( strLabelitLog) if xsDataLabelitScreenOutput is None: strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : Cannot parse output" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: xsDataIntegerSelectedSolutionNumber = xsDataLabelitScreenOutput.getSelectedSolutionNumber( ) if (xsDataIntegerSelectedSolutionNumber is None): strErrorMessage = "EDPluginLabelitIndexingv1_1.postProcess : No selected solution" self.error(strErrorMessage) self.addErrorMessage(strErrorMessage) self.setFailure() else: strLabelitMosflmScriptsOutput = self.readProcessFile( self.generateMosflmScriptName( xsDataIntegerSelectedSolutionNumber.getValue())) xsDataLabelitMosflmScriptsOutput = self.parseMosflmScriptsOutput( strLabelitMosflmScriptsOutput) # Path to log file xsDataLabelitScreenOutput.setPathToLogFile( XSDataFile( XSDataString( os.path.join(self.getWorkingDirectory(), self.getScriptLogFileName())))) self.setDataOutput(xsDataLabelitScreenOutput, "labelitScreenOutput") self.setDataOutput(xsDataLabelitMosflmScriptsOutput, "mosflmScriptsOutput")