本文整理汇总了Python中EDPluginMOSFLMv10.EDPluginMOSFLMv10类的典型用法代码示例。如果您正苦于以下问题:Python EDPluginMOSFLMv10类的具体用法?Python EDPluginMOSFLMv10怎么用?Python EDPluginMOSFLMv10使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了EDPluginMOSFLMv10类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: checkParameters
def checkParameters(self):
"""
Checks the mandatory parameters for MOSLFM indexing
"""
EDPluginMOSFLMv10.checkParameters(self)
self.DEBUG("EDPluginMOSFLMIndexingv10.checkParameters")
self.checkMandatoryParameters(self.getDataInput().getImage(), "image")
示例2: generateMOSFLMCommands
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")
示例3: generateMOSFLMCommands
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")
示例4: checkParameters
def checkParameters(self):
"""
Checks the mandatory parameters for MOSLFM indexing
"""
EDPluginMOSFLMv10.checkParameters(self)
EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.checkParameters")
self.checkMandatoryParameters(self.getDataInput().getImage(), "image")
示例5: generateMOSFLMCommands
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")
示例6: configure
def configure(self):
EDPluginMOSFLMv10.configure(self)
EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.configure")
xsPluginItem = self.getConfiguration()
if (xsPluginItem == None):
EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.configure: xsPluginItem is None")
self.createPredictionImageFileName()
示例7: generateMOSFLMCommands
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")
示例8: checkParameters
def checkParameters(self):
"""
Checks the mandatory parameters for MOSLFM indexing
"""
EDPluginMOSFLMv10.checkParameters(self)
self.DEBUG("EDPluginMOSFLMIntegrationv10.checkParameters")
self.checkMandatoryParameters(self.getDataInput().getImageEnd(), "imageEnd")
self.checkMandatoryParameters(self.getDataInput().getImageStart(), "imageStart")
self.checkMandatoryParameters(self.getDataInput().getOscillationWidth(), "oscillationWidth")
self.checkMandatoryParameters(self.getDataInput().getRotationAxisStart(), "rotationAxisStart")
示例9: postProcess
def postProcess(self, _edObject=None):
EDPluginMOSFLMv10.postProcess(self)
self.DEBUG("EDPluginMOSFLMIntegrationv10.postProcess")
xsDataMOSFLMOutputIntegration = self.createDataMOSFLMOutputIntegration()
if (xsDataMOSFLMOutputIntegration is None):
strError = "MOSFLM integration error : no integration results obtained."
self.addExecutiveSummaryLine(strError)
self.ERROR(strError)
self.setFailure()
else:
self.setDataOutput(xsDataMOSFLMOutputIntegration)
示例10: preProcess
def preProcess(self, _edObject=None):
EDPluginMOSFLMv10.preProcess(self)
self.DEBUG("EDPluginMOSFLMIntegrationv10.preProcess")
self.generateMOSFLMCommands()
示例11: __init__
def __init__(self):
EDPluginMOSFLMv10.__init__(self)
self.setXSDataInputClass(XSDataMOSFLMInputIntegration)
self.setDataOutput(XSDataMOSFLMOutputIntegration())
示例12: generateExecutiveSummary
def generateExecutiveSummary(self, _edPlugin):
"""
Generates a summary of the execution of the plugin.
"""
EDPluginMOSFLMv10.generateExecutiveSummary(self, _edPlugin)
self.DEBUG("EDPluginMOSFLMIntegrationv10.createDataMOSFLMOutputIndexing")
xsDataMOSFLMInputIntegration = self.getDataInput()
xsDataMOSFLMOutputIntegration = self.getDataOutput()
if xsDataMOSFLMOutputIntegration.getNumberOfFullyRecordedReflections() is not None:
self.addExecutiveSummaryLine("Execution of MOSFLM integration successful.")
self.addExecutiveSummaryLine("Image directory : %s" % xsDataMOSFLMInputIntegration.getDirectory().getValue())
self.addExecutiveSummaryLine("Image template : %s" % xsDataMOSFLMInputIntegration.getTemplate().getValue())
self.addExecutiveSummaryLine("Image start : %4d" % xsDataMOSFLMInputIntegration.getImageStart().getValue())
self.addExecutiveSummaryLine("Image end : %4d" % xsDataMOSFLMInputIntegration.getImageEnd().getValue())
fRotationAxisStart = xsDataMOSFLMInputIntegration.getRotationAxisStart().getValue()
fOscillationWidth = xsDataMOSFLMInputIntegration.getOscillationWidth().getValue()
self.addExecutiveSummaryLine("Rotation axis start : %4.1f [degrees]" % fRotationAxisStart)
self.addExecutiveSummaryLine("Rotation axis end : %4.1f [degrees]" % (fRotationAxisStart + fOscillationWidth))
self.addExecutiveSummaryLine("")
iNumberOfFullyRecordedReflections = xsDataMOSFLMOutputIntegration.getNumberOfFullyRecordedReflections().getValue()
self.addExecutiveSummaryLine("Number of fully recorded reflections : %5d" % iNumberOfFullyRecordedReflections)
self.addExecutiveSummaryLine("Number of partials : %5d" % xsDataMOSFLMOutputIntegration.getNumberOfPartialReflections().getValue())
self.addExecutiveSummaryLine("Number of overlapped reflections : %5d" % xsDataMOSFLMOutputIntegration.getNumberOfOverlappedReflections().getValue())
self.addExecutiveSummaryLine("Number of reflections with negative intensity : %5d" % xsDataMOSFLMOutputIntegration.getNumberOfNegativeReflections().getValue())
self.addExecutiveSummaryLine("Number of bad reflections : %5d" % xsDataMOSFLMOutputIntegration.getNumberOfBadReflections().getValue())
self.addExecutiveSummaryLine("")
self.addExecutiveSummaryLine("RMS spot deviation : %5.3f [mm]" % xsDataMOSFLMOutputIntegration.getRMSSpotDeviation().getValue())
self.addExecutiveSummaryLine("Average I/sigma overall : %5.1f" % xsDataMOSFLMOutputIntegration.getOverallIOverSigma().getValue())
self.addExecutiveSummaryLine("Average I/sigma at highest resolution : %5.1f" % xsDataMOSFLMOutputIntegration.getHighestResolutionIOverSigma().getValue())
self.addExecutiveSummaryLine("")
self.addExecutiveSummaryLine("Analysis as a function of resolution:")
strResolution = "Res (Ang) "
strNumberProfileFittedFullyRecorded = "Number "
strAverageIntensityProfileFittedFullyRecorded = " <I> "
strAverageIOverSigmaProfileFittedFullyRecorded = " <I/sigma>"
strNumberProfileFittedPartials = "Number "
strAverageIntensityProfileFittedPartials = " <I> "
strAverageIOverSigmaProfileFittedPartials = " <I/sigma>"
for xsDataMOSFLMIntegrationStatisticsPerResolutionBin in xsDataMOSFLMOutputIntegration.getStatisticsPerResolutionBin():
fMaxResolution = xsDataMOSFLMIntegrationStatisticsPerResolutionBin.getMaxResolution().getValue()
strResolution += "%7.2f" % fMaxResolution
xsDataMOSFLMIntegrationStatisticsProfileFitted = xsDataMOSFLMIntegrationStatisticsPerResolutionBin.getProfileFitted()
xsDataMOSFLMIntegrationStatisticsProfileFittedFullyRecorded = xsDataMOSFLMIntegrationStatisticsProfileFitted.getFullyRecorded()
strNumberProfileFittedFullyRecorded += "%7d" % xsDataMOSFLMIntegrationStatisticsProfileFittedFullyRecorded.getNumberOfReflections().getValue()
strAverageIntensityProfileFittedFullyRecorded += "%7.0f" % xsDataMOSFLMIntegrationStatisticsProfileFittedFullyRecorded.getAverageIntensity().getValue()
strAverageIOverSigmaProfileFittedFullyRecorded += "%7.1f" % xsDataMOSFLMIntegrationStatisticsProfileFittedFullyRecorded.getAverageIOverSigma().getValue()
xsDataMOSFLMIntegrationStatisticsProfileFittedPartials = xsDataMOSFLMIntegrationStatisticsProfileFitted.getPartials()
strNumberProfileFittedPartials += "%7d" % xsDataMOSFLMIntegrationStatisticsProfileFittedPartials.getNumberOfReflections().getValue()
strAverageIntensityProfileFittedPartials += "%7.0f" % xsDataMOSFLMIntegrationStatisticsProfileFittedPartials.getAverageIntensity().getValue()
strAverageIOverSigmaProfileFittedPartials += "%7.1f" % xsDataMOSFLMIntegrationStatisticsProfileFittedPartials.getAverageIOverSigma().getValue()
strResolution += " Overall"
self.addExecutiveSummaryLine(strResolution)
strNumberProfileFittedFullyRecorded += "%8d" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getFullyRecorded().getNumberOfReflections().getValue()
strAverageIntensityProfileFittedFullyRecorded += "%8.0f" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getFullyRecorded().getAverageIntensity().getValue()
strAverageIOverSigmaProfileFittedFullyRecorded += "%8.1f" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getFullyRecorded().getAverageIOverSigma().getValue()
strNumberProfileFittedPartials += "%8d" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getPartials().getNumberOfReflections().getValue()
strAverageIntensityProfileFittedPartials += "%8.0f" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getPartials().getAverageIntensity().getValue()
strAverageIOverSigmaProfileFittedPartials += "%8.1f" % xsDataMOSFLMOutputIntegration.getOverallStatistics().getProfileFitted().getPartials().getAverageIOverSigma().getValue()
if (iNumberOfFullyRecordedReflections > 0):
self.addExecutiveSummaryLine("Profile fitted fully recorded:")
self.addExecutiveSummaryLine(strNumberProfileFittedFullyRecorded)
self.addExecutiveSummaryLine(strAverageIntensityProfileFittedFullyRecorded)
self.addExecutiveSummaryLine(strAverageIOverSigmaProfileFittedFullyRecorded)
self.addExecutiveSummaryLine("Profile fitted partials:")
self.addExecutiveSummaryLine(strNumberProfileFittedPartials)
self.addExecutiveSummaryLine(strAverageIntensityProfileFittedPartials)
#self.addExecutiveSummaryLine( strAverageSigmaProfileFittedPartials )
self.addExecutiveSummaryLine(strAverageIOverSigmaProfileFittedPartials)
self.addExecutiveSummaryLine("")
self.addExecutiveSummaryLine("Path to MTZ file : %s" % xsDataMOSFLMOutputIntegration.getGeneratedMTZFile().getPath().getValue())
示例13: postProcess
def postProcess(self, _edObject=None):
EDPluginMOSFLMv10.postProcess(self)
EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.postProcess")
xsDataMOSFLMOutputGeneratePrediction = self.createDataMOSFLMOutputGeneratePrediction()
self.setDataOutput(xsDataMOSFLMOutputGeneratePrediction)
示例14: preProcess
def preProcess(self, _edObject=None):
EDPluginMOSFLMv10.preProcess(self)
EDVerbose.DEBUG("EDPluginMOSFLMGeneratePredictionv10.preProcess")
self.generateMOSFLMCommands()
示例15: configure
def configure(self):
EDPluginMOSFLMv10.configure(self)
self.DEBUG("EDPluginMOSFLMGeneratePredictionv10.configure")
self.createPredictionImageFileName()