当前位置: 首页>>代码示例>>Python>>正文


Python EDPluginExecProcessScript.finallyProcess方法代码示例

本文整理汇总了Python中EDPluginExecProcessScript.EDPluginExecProcessScript.finallyProcess方法的典型用法代码示例。如果您正苦于以下问题:Python EDPluginExecProcessScript.finallyProcess方法的具体用法?Python EDPluginExecProcessScript.finallyProcess怎么用?Python EDPluginExecProcessScript.finallyProcess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EDPluginExecProcessScript.EDPluginExecProcessScript的用法示例。


在下文中一共展示了EDPluginExecProcessScript.finallyProcess方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     """
     Parses the labelit.screen log file and the generated MOSFLM script
     """
     EDPluginExecProcessScript.finallyProcess(self, _edObject)
     self.DEBUG("EDPluginDistlSignalStrengthThinClientv1_1.finallyProcess")
     strLabelitDistlLog = self.readProcessLogFile()
     if (strLabelitDistlLog is None):
         strErrorMessage = "EDPluginDistlSignalStrengthThinClientv1_1.finallyProcess : Could not read the Labelit log file"
         self.error(strErrorMessage)
         self.addErrorMessage(strErrorMessage)
         self.setFailure()
         xsDataImageQualityIndicators = XSDataImageQualityIndicators()
         xsDataImageQualityIndicators.setImage(self.xsDataImage)
     elif strLabelitDistlLog == "":
         strLabelitDislErr = self.readProcessErrorLogFile()
         if "httplib.BadStatusLine" in strLabelitDislErr:
             strErrorMessage = "Cannot read image due to problem with file permission!"
         else:
             strErrorMessage = "Labelit thin client error message: " + strLabelitDislErr
         self.error(strErrorMessage)
         self.addErrorMessage(strErrorMessage)
         self.setFailure()
         xsDataImageQualityIndicators = XSDataImageQualityIndicators()
         xsDataImageQualityIndicators.setImage(self.xsDataImage)
     else:
         xsDataImageQualityIndicators = self.parseLabelitDistlOutput(strLabelitDistlLog)
         xsDataImageQualityIndicators.setImage(self.xsDataImage)
     xsDataResultDistlSignalStrength = XSDataResultDistlSignalStrength()
     xsDataResultDistlSignalStrength.setImageQualityIndicators(xsDataImageQualityIndicators)
     self.setDataOutput(xsDataResultDistlSignalStrength)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:33,代码来源:EDPluginDistlSignalStrengthThinClientv1_1.py

示例2: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginH5ToCBFv1_0.finallyProcess")
     if self.tmpCBFFile is not None:
         if os.path.exists(self.tmpCBFFile):
             os.remove(self.tmpCBFFile)
     if self.CBFFile is not None:
         if os.path.exists(self.CBFFile):
             self.dataOutput.outputCBFFile = XSDataFile(XSDataString(self.CBFFile))
开发者ID:jordiandreu,项目名称:edna-mx,代码行数:11,代码来源:EDPluginH5ToCBFv1_0.py

示例3: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.finallyProcess")
     xsDataResult = self.getOutputDataFromDNATableFile("rdfit.xml")
     if os.path.exists(self.strScaleIntensityPlotPath):
         xsDataResult.scaleIntensityPlot = XSDataFile(XSDataString(self.strScaleIntensityPlotPath))
     if os.path.exists(self.strBFactorPlot):
         xsDataResult.bFactorPlot = XSDataFile(XSDataString(self.strBFactorPlot))
     if os.path.exists(self.htmlPagePath):
         xsDataResult.htmlPage = XSDataFile(XSDataString(self.htmlPagePath))
     if os.path.exists(self.jsonPath):
         xsDataResult.jsonPath = XSDataFile(XSDataString(self.jsonPath))
     self.setDataOutput(xsDataResult)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:15,代码来源:EDPluginRdfitv1_0.py

示例4: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginBestv1_2.finallyProcess")
     xsDataResultBest = self.getOutputDataFromDNATableFile(
         os.path.join(self.getWorkingDirectory(), self.getScriptBaseName() + "_dnaTables.xml")
     )
     xsDataFilePathToLog = XSDataFile(
         XSDataString(os.path.join(self.getWorkingDirectory(), self.getScriptLogFileName()))
     )
     xsDataResultBest.setPathToLogFile(xsDataFilePathToLog)
     strError = self.readProcessErrorLogFile()
     if (strError is not None) and (strError != ""):
         strErrorMessage = EDMessage.ERROR_EXECUTION_03 % (
             "EDPluginBestv1_2.finallyProcess",
             "EDPluginBestv1_2",
             strError,
         )
         self.error(strErrorMessage)
         self.addErrorMessage(strErrorMessage)
         # Append error message to best log
         strLog = self.readProcessLogFile()
         strLog += "\n" + strError
         EDUtilsFile.writeFile(os.path.join(self.getWorkingDirectory(), self.getScriptLogFileName()), strLog)
         self.setDataOutput(xsDataResultBest)
         self.setFailure()
     else:
         strPathToPlotMtv = os.path.join(self.getWorkingDirectory(), self.getScriptBaseName() + "_plots.mtv")
         if os.path.exists(strPathToPlotMtv):
             xsDataFilePathToPlotMtv = XSDataFile(XSDataString(strPathToPlotMtv))
             xsDataResultBest.setPathToPlotMtvFile(xsDataFilePathToPlotMtv)
         # Check for .gle files
         for strPath in os.listdir(self.getWorkingDirectory()):
             if strPath.endswith(".gle"):
                 xsDataBestGlePlot = XSDataBestGlePlot()
                 xsDataBestGlePlot.script = XSDataFile(
                     XSDataString(os.path.join(self.getWorkingDirectory(), strPath))
                 )
                 strDataPath = strPath[:-4] + ".dat"
                 if os.path.exists(os.path.join(self.getWorkingDirectory(), strDataPath)):
                     xsDataBestGlePlot.data = XSDataFile(
                         XSDataString(os.path.join(self.getWorkingDirectory(), strDataPath))
                     )
                 else:
                     strDataPath = strPath[:-4] + ".data"
                     if os.path.exists(os.path.join(self.getWorkingDirectory(), strDataPath)):
                         xsDataBestGlePlot.data = XSDataFile(
                             XSDataString(os.path.join(self.getWorkingDirectory(), strDataPath))
                         )
                 xsDataResultBest.addGlePlot(xsDataBestGlePlot)
         self.setDataOutput(xsDataResultBest)
开发者ID:olofsvensson,项目名称:edna,代码行数:52,代码来源:EDPluginBestv1_2.py

示例5: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     EDVerbose.DEBUG("EDPluginBestv1_2.finallyProcess")
     strError = self.readProcessErrorLogFile()
     if((strError is not None) and (strError != "")):
         strErrorMessage = EDMessage.ERROR_EXECUTION_03 % ('EDPluginBestv1_2.postProcess', 'EDPluginBestv1_2', strError)
         EDVerbose.error(strErrorMessage)
         self.addErrorMessage(strErrorMessage)
         self.setDataOutput(XSDataResultBest())
         self.setFailure()
     else:
         xsDataResultBest = self.getOutputDataFromDNATableFile(EDUtilsPath.mergePath(self.getWorkingDirectory(), self.getScriptBaseName() + "_dnaTables.xml"))
         xsDataFilePathToLog = XSDataFile(XSDataString(os.path.join(self.getWorkingDirectory(), self.getScriptLogFileName())))
         xsDataResultBest.setPathToLogFile(xsDataFilePathToLog)
         self.setDataOutput(xsDataResultBest)
开发者ID:olofsvensson,项目名称:edna-plugins-mx,代码行数:17,代码来源:EDPluginBestv1_2.py

示例6: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject = None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.finallyProcess")
     xsDataResult = XSDataResultMtz2Various()
     xsDataResult.setHklfile(XSDataFile(XSDataString(self.strHklFile)))
     self.setDataOutput(xsDataResult)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:8,代码来源:EDPluginExecMtz2Variousv1_0.py

示例7: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject = None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.finallyProcess")
     xsDataResult = self.getOutputDataFromDNATableFile("rdfit.xml")
     self.setDataOutput(xsDataResult)
开发者ID:tbn,项目名称:edna,代码行数:7,代码来源:EDPluginRdfitv1_0.py

示例8: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self, _edObject)
     self.DEBUG("EDPluginPhenixXtriagev1_1.finallyProcess")
     # Remove local mtz file if any
     if self.strPathToLocalMtz is not None and os.path.exists(self.strPathToLocalMtz):
         os.remove(self.strPathToLocalMtz)
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:8,代码来源:EDPluginPhenixXtriagev1_1.py

示例9: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginXOalignv1_0.finallyProcess")
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:5,代码来源:EDPluginXOalignv1_0.py

示例10: finallyProcess

# 需要导入模块: from EDPluginExecProcessScript import EDPluginExecProcessScript [as 别名]
# 或者: from EDPluginExecProcessScript.EDPluginExecProcessScript import finallyProcess [as 别名]
 def finallyProcess(self, _edObject=None):
     EDPluginExecProcessScript.finallyProcess(self)
     self.DEBUG("EDPluginHTML2PDFv1_0.finallyProcess")
     if self.pdfFile is not None:
         if os.path.exists(self.pdfFile):
             self.dataOutput.pdfFile = XSDataFile(XSDataString(self.pdfFile))
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:8,代码来源:EDPluginHTML2PDFv1_0.py


注:本文中的EDPluginExecProcessScript.EDPluginExecProcessScript.finallyProcess方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。