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


Python EDPluginMOSFLMv10.generateMOSFLMCommands方法代码示例

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


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

示例1: generateMOSFLMCommands

# 需要导入模块: from EDPluginMOSFLMv10 import EDPluginMOSFLMv10 [as 别名]
# 或者: from EDPluginMOSFLMv10.EDPluginMOSFLMv10 import generateMOSFLMCommands [as 别名]
    def generateMOSFLMCommands(self):
        """
        This method creates a list of MOSFLM integration commands given a valid
        XSDataMOSFLMIntegrationingInput as self.getDataInput()
        """
        EDPluginMOSFLMv10.generateMOSFLMCommands(self)
        self.DEBUG("EDPluginMOSFLMIntegrationv10.generateMOSFLMCommands")

        xsDataMOSFLMInputIntegration = self.getDataInput()

        if (xsDataMOSFLMInputIntegration is not None):


            iImageStart = xsDataMOSFLMInputIntegration.getImageStart().getValue()
            iImageEnd = xsDataMOSFLMInputIntegration.getImageEnd().getValue()
            fRotationAxisStart = xsDataMOSFLMInputIntegration.getRotationAxisStart().getValue()
            fOscillationWidth = xsDataMOSFLMInputIntegration.getOscillationWidth().getValue()

            self.addListCommandExecution("HKLOUT process_%d_%d.mtz" %
                                                       (iImageStart, iImageEnd))
            self.addListCommandExecution("PROCESS %d TO %d START %f ANGLE %f" %
                                                       (iImageStart, iImageEnd, fRotationAxisStart, fOscillationWidth))


            self.addListCommandExecution("BEST ON")
            self.addListCommandExecution("GO")
            self.addListCommandExecution("BEST OFF")

        # Force name of log file
        self.setScriptLogFileName(self.compactPluginName(self.getClassName())+".log")

        self.DEBUG("Finished EDPluginMOSFLMIntegrationv10.generateMOSFLMCommands")
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:34,代码来源:EDPluginMOSFLMIntegrationv10.py

示例2: generateMOSFLMCommands

# 需要导入模块: from EDPluginMOSFLMv10 import EDPluginMOSFLMv10 [as 别名]
# 或者: from EDPluginMOSFLMv10.EDPluginMOSFLMv10 import generateMOSFLMCommands [as 别名]
    def generateMOSFLMCommands(self):
        """
        This method creates a list of MOSFLM indexing commands given a valid
        XSDataMOSFLMIndexingingInput as self.getDataInput()
        """
        EDPluginMOSFLMv10.generateMOSFLMCommands(self)
        EDVerbose.DEBUG("EDPluginMOSFLMIndexingv10.generateMOSFLMCommands")

        xsDataMOSFLMIndexingInput = self.getDataInput()

        if (xsDataMOSFLMIndexingInput != None):

            self.addListCommandExecution("NEWMAT " + self.getNewmatFileName())

            xsDataMOSFLMImageList = xsDataMOSFLMIndexingInput.getImage()
            for xsDataMOSFLMImage in xsDataMOSFLMImageList:
                iImageNumber = xsDataMOSFLMImage.getNumber().getValue()
                fRotationAxisStart = xsDataMOSFLMImage.getRotationAxisStart().getValue()
                fRotationAxisEnd = xsDataMOSFLMImage.getRotationAxisEnd().getValue()
                self.addListCommandExecution("AUTOINDEX DPS REFINE IMAGE " + str(iImageNumber) + " " \
                                                     "PHI " + str(fRotationAxisStart) + " " + str(fRotationAxisEnd))
            self.addListCommandExecution("GO")
            for xsDataImage in xsDataMOSFLMImageList:
                self.addListCommandExecution("MOSAIC ESTIMATE %d" % xsDataImage.getNumber().getValue())
                self.addListCommandExecution("GO")

#            strPrefix = strTemplate.split("#")[0][:-1]
#            strGenFileName = strPrefix + ".gen"
#            strSptFileName = strPrefix + ".spt"

        EDVerbose.DEBUG("Finished EDPluginMOSFLMIndexingv10.generateMOSFLMIndexingCommands")
开发者ID:olofsvensson,项目名称:edna-plugins-mx,代码行数:33,代码来源:EDPluginMOSFLMIndexingv10.py

示例3: generateMOSFLMCommands

# 需要导入模块: from EDPluginMOSFLMv10 import EDPluginMOSFLMv10 [as 别名]
# 或者: from EDPluginMOSFLMv10.EDPluginMOSFLMv10 import generateMOSFLMCommands [as 别名]
    def generateMOSFLMCommands(self):
        """
        This method creates a list of MOSFLM integration commands given a valid
        XSDataMOSFLMInputGeneratePrediction as input to the plugin.
        """
        EDPluginMOSFLMv10.generateMOSFLMCommands(self)
        EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.generateMOSFLMCommands")

        xsDataMOSFLMInputGeneratePrediction = self.getDataInput()

        if (xsDataMOSFLMInputGeneratePrediction is not None):

            pyStrTemplate = xsDataMOSFLMInputGeneratePrediction.getTemplate().getValue()
            xsDataMOSFLMImage = xsDataMOSFLMInputGeneratePrediction.getImage()
            iImageNumber = xsDataMOSFLMImage.getNumber().getValue()

            pyStrImageFileName = self.getImageFileNameFromTemplate(pyStrTemplate, iImageNumber)
            if (pyStrImageFileName is not None):
                self.setPredictionImageFileName(pyStrImageFileName + "_pred.jpg")

            fRotationAxisStart = xsDataMOSFLMImage.getRotationAxisStart().getValue()
            fRotationAxisEnd = xsDataMOSFLMImage.getRotationAxisEnd().getValue()
            self.addListCommandExecution("XGUI ON")
            self.addListCommandExecution("IMAGE %d PHI %f TO %f" % (iImageNumber, fRotationAxisStart, fRotationAxisEnd))
            self.addListCommandExecution("GO")
            self.addListCommandExecution("PREDICT_SPOTS")
            self.addListCommandExecution("CREATE_IMAGE PREDICTION ON BINARY TRUE FILENAME %s" % (self.getPredictionImageFileName()))
            self.addListCommandExecution("RETURN")
            self.addListCommandExecution("EXIT")

            self.addListCommandPostExecution("chmod 644 %s" % self.getPredictionImageFileName())

        EDVerbose.DEBUG("Finished EDPluginMOSFLMGeneratePredictionv10.generateMOSFLMCommands")
开发者ID:olofsvensson,项目名称:edna-plugins-mx,代码行数:35,代码来源:EDPluginMOSFLMGeneratePredictionv10.py

示例4: generateMOSFLMCommands

# 需要导入模块: from EDPluginMOSFLMv10 import EDPluginMOSFLMv10 [as 别名]
# 或者: from EDPluginMOSFLMv10.EDPluginMOSFLMv10 import generateMOSFLMCommands [as 别名]
    def generateMOSFLMCommands(self):
        """
        This method creates a list of MOSFLM integration commands given a valid
        XSDataMOSFLMIntegrationingInput as self.getDataInput()
        """
        EDPluginMOSFLMv10.generateMOSFLMCommands(self)
        EDVerbose.DEBUG("EDPluginMOSFLMIntegrationv10.generateMOSFLMCommands")

        xsDataMOSFLMInputIntegration = self.getDataInput()

        if xsDataMOSFLMInputIntegration is not None:

            iImageStart = xsDataMOSFLMInputIntegration.getImageStart().getValue()
            iImageEnd = xsDataMOSFLMInputIntegration.getImageEnd().getValue()
            fRotationAxisStart = xsDataMOSFLMInputIntegration.getRotationAxisStart().getValue()
            fOscillationWidth = xsDataMOSFLMInputIntegration.getOscillationWidth().getValue()

            self.addListCommandExecution("HKLOUT process_%d_%d.mtz" % (iImageStart, iImageEnd))
            self.addListCommandExecution(
                "PROCESS %d TO %d START %f ANGLE %f" % (iImageStart, iImageEnd, fRotationAxisStart, fOscillationWidth)
            )

            self.addListCommandExecution("BEST ON")
            self.addListCommandExecution("GO")
            self.addListCommandExecution("BEST OFF")

        EDVerbose.DEBUG("Finished EDPluginMOSFLMIntegrationv10.generateMOSFLMCommands")
开发者ID:olofsvensson,项目名称:edna-plugins-mx,代码行数:29,代码来源:EDPluginMOSFLMIntegrationv10.py


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