def postProcess(self, _edObject=None): EDPluginControl.postProcess(self, _edObject) EDVerbose.DEBUG("EDPluginControlStrategyv1_2.postProcess...") xsDataResultBest = self._edPluginBest.getDataOutput() # # Create the BEST graphs from the plot mtv file # xsDataInputPlotGle = XSDataInputPlotGle() xsDataInputPlotGle.filePlotMtv = xsDataResultBest.pathToPlotMtvFile self._edPluginPlotGle.dataInput = xsDataInputPlotGle self._edPluginPlotGle.executeSynchronous() # TODO # Temporary! Otherwise fails Model from -bonly is different xsDataResultStrategy = None if(xsDataResultBest is not None and self.getDataInput().getDiffractionPlan().getStrategyOption() is not None): if (self.getDataInput().getDiffractionPlan().getStrategyOption().getValue() != "-Bonly"): xsDataResultStrategy = self._edHandlerXSDataBest.getXSDataResultStrategy(xsDataResultBest, self.getDataInput().getExperimentalCondition(), self._xsDataSampleCopy) else: xsDataResultStrategy = self._edHandlerXSDataBest.getXSDataResultStrategy(xsDataResultBest, self.getDataInput().getExperimentalCondition(), self._xsDataSampleCopy) if self.xsDataFileRaddoseLog is not None: xsDataResultStrategy.setRaddoseLogFile(self.xsDataFileRaddoseLog) # Plots if not self._edPluginPlotGle.isFailure(): listFileGraph = self._edPluginPlotGle.dataOutput.fileGraph xsDataResultStrategy.bestGraphFile = listFileGraph # Sample xsDataResultStrategy.setSample(self._xsDataSampleCopy) self.setDataOutput(xsDataResultStrategy) self.generateStrategyShortSummary(xsDataResultStrategy)
def postProcess(self, _edObject=None): EDPluginControl.postProcess(self, _edObject) EDVerbose.DEBUG("EDPluginControlStrategyv1_2.postProcess...") # # Create the BEST graphs from the plot mtv file # # Check if we have GLE files from BEST: xsDataResultBest = self._edPluginBest.getDataOutput() xsDataInputPlotGle = XSDataInputPlotGle() if xsDataResultBest.glePlot != []: for xsDataBestGlePlot in xsDataResultBest.glePlot: xsDataGlePlot = XSDataGlePlot() xsDataGlePlot.script = xsDataBestGlePlot.script xsDataGlePlot.data = xsDataBestGlePlot.data xsDataInputPlotGle.addGlePlot(xsDataGlePlot) else: xsDataInputPlotGle.filePlotMtv = xsDataResultBest.pathToPlotMtvFile self._edPluginPlotGle.dataInput = xsDataInputPlotGle self._edPluginPlotGle.executeSynchronous()
def postProcess(self, _edObject=None): EDPluginControl.postProcess(self, _edObject) EDVerbose.DEBUG("EDPluginControlStrategyv1_2.postProcess...") xsDataResultBest = self._edPluginBest.getDataOutput() # # Create the BEST graphs from the plot mtv file # xsDataInputPlotGle = XSDataInputPlotGle() xsDataInputPlotGle.filePlotMtv = xsDataResultBest.pathToPlotMtvFile self._edPluginPlotGle.dataInput = xsDataInputPlotGle self._edPluginPlotGle.executeSynchronous() # TODO # Temporary! Otherwise fails Model from -bonly is different xsDataResultStrategy = None if (xsDataResultBest is not None and self.getDataInput().getDiffractionPlan().getStrategyOption() is not None): if (self.getDataInput().getDiffractionPlan().getStrategyOption(). getValue() != "-Bonly"): xsDataResultStrategy = self._edHandlerXSDataBest.getXSDataResultStrategy( xsDataResultBest, self.getDataInput().getExperimentalCondition(), self._xsDataSampleCopy) else: xsDataResultStrategy = self._edHandlerXSDataBest.getXSDataResultStrategy( xsDataResultBest, self.getDataInput().getExperimentalCondition(), self._xsDataSampleCopy) if self.xsDataFileRaddoseLog is not None: xsDataResultStrategy.setRaddoseLogFile(self.xsDataFileRaddoseLog) # Plots if not self._edPluginPlotGle.isFailure(): listFileGraph = self._edPluginPlotGle.dataOutput.fileGraph xsDataResultStrategy.bestGraphFile = listFileGraph # Sample xsDataResultStrategy.setSample(self._xsDataSampleCopy) self.setDataOutput(xsDataResultStrategy) self.generateStrategyShortSummary(xsDataResultStrategy)
def testCheckParameters(self): xsDataInput = XSDataInputPlotGle() edPluginExecPlotGle = self.createPlugin() edPluginExecPlotGle.setDataInput(xsDataInput) edPluginExecPlotGle.checkParameters()