本文整理汇总了Python中XSDataMXv1.XSDataDiffractionPlan.setEstimateRadiationDamage方法的典型用法代码示例。如果您正苦于以下问题:Python XSDataDiffractionPlan.setEstimateRadiationDamage方法的具体用法?Python XSDataDiffractionPlan.setEstimateRadiationDamage怎么用?Python XSDataDiffractionPlan.setEstimateRadiationDamage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSDataMXv1.XSDataDiffractionPlan
的用法示例。
在下文中一共展示了XSDataDiffractionPlan.setEstimateRadiationDamage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EDPluginControlGridScreeningv1_0
# 需要导入模块: from XSDataMXv1 import XSDataDiffractionPlan [as 别名]
# 或者: from XSDataMXv1.XSDataDiffractionPlan import setEstimateRadiationDamage [as 别名]
class EDPluginControlGridScreeningv1_0(EDPluginControl):
"""
This plugin is a "light-weight" characterisation to be used for processing
images from grid scans.
"""
def __init__(self):
EDPluginControl.__init__(self)
self.setXSDataInputClass(XSDataInputGridScreening)
self.strControlReadImageHeaderPluginName = "EDPluginControlReadImageHeaderv10"
self.edPluginControlReadImageHeader = None
self.strControlledIndicatorsPluginName = "EDPluginControlImageQualityIndicatorsv1_4"
self.edPluginControlIndicators = None
self.strISPyBStoreImageQualityIndicatorsPluginName = "EDPluginISPyBStoreImageQualityIndicatorsv1_4"
self.edPluginISPyBStoreImageQualityIndicators = None
self.strIndexingMOSFLMPluginName = "EDPluginMOSFLMIndexingv10"
self.edPluginMOSFLMIndexing = None
self.strPluginControlIntegration = "EDPluginControlIntegrationv10"
self.edPluginControlIntegration = None
self.strPluginControlStrategy = "EDPluginControlStrategyv1_2"
self.edPluginControlStrategy = None
self.strPluginExecMtz2Various = "EDPluginExecMtz2Variousv1_0"
self.edPluginExecMtz2Various = None
self.strImageFile = None
self.xsDataIndexingResultMOSFLM = None
self.xsDataCrystal = None
self.strCharacterisationShortSummary = ""
self.strStatusMessage = ""
self.xsDataDiffractionPlan = None
self.xsDataCollection = None
self.xsDataIndexingResult = None
self.xsDataStrategyResult = None
self.xsDataImageQualityIndicators = None
self.bStoreImageQualityIndicatorsInISPyB = False
self.bDoOnlyImageQualityIndicators = False
self.bDoOnlyIntegrationWithXMLOutput = False
self.iImageQualityIndicatorsId = None
self.xsDataGridScreeningResultIntegration = None
def checkParameters(self):
"""
Checks the mandatory parameters.
"""
self.DEBUG("EDPluginControlGridScreeningv1_0.checkParameters")
self.checkMandatoryParameters(self.getDataInput(), "Data Input is None")
self.checkMandatoryParameters(self.getDataInput().getImageFile(), "imageFile")
def preProcess(self, _edObject=None):
EDPluginControl.preProcess(self)
self.DEBUG("EDPluginControlGridScreeningv1_0.preProcess")
# Load the plugins
self.edPluginControlReadImageHeader = self.loadPlugin(self.strControlReadImageHeaderPluginName, \
"ReadImageHeader")
self.edPluginControlIndicators = self.loadPlugin(self.strControlledIndicatorsPluginName, \
"ControlIndicators")
self.edPluginMOSFLMIndexing = self.loadPlugin(self.strIndexingMOSFLMPluginName, \
"IndexingMOSFLM")
self.edPluginControlIntegration = self.loadPlugin(self.strPluginControlIntegration, \
"Integration")
self.edPluginControlStrategy = self.loadPlugin(self.strPluginControlStrategy, \
"Strategy")
self.edPluginExecMtz2Various = self.loadPlugin(self.strPluginExecMtz2Various, \
"Mtz2Various")
# Input data
self.strImageFile = self.getDataInput().getImageFile().getPath().getValue()
self.xsDataGridScreeningFileNameParameters = self.getFileNameParameters(self.strImageFile)
self.xsDataDiffractionPlan = self.getDataInput().getDiffractionPlan()
if self.xsDataDiffractionPlan is None:
self.xsDataDiffractionPlan = XSDataDiffractionPlan()
if self.xsDataDiffractionPlan.getMaxExposureTimePerDataCollection() is None:
# Default max esposure time: 10000s
self.xsDataDiffractionPlan.setMaxExposureTimePerDataCollection(XSDataTime(10000))
self.xsDataDiffractionPlan.setEstimateRadiationDamage(XSDataBoolean(False))
# Image quality indicators
if self.getDataInput().getStoreImageQualityIndicatorsInISPyB():
self.bStoreImageQualityIndicatorsInISPyB = self.getDataInput().getStoreImageQualityIndicatorsInISPyB().getValue()
if self.getDataInput().getDoOnlyImageQualityIndicators():
self.bDoOnlyImageQualityIndicators = self.getDataInput().getDoOnlyImageQualityIndicators().getValue()
if self.getDataInput().getDoOnlyIntegrationWithXMLOutput():
self.bDoOnlyIntegrationWithXMLOutput = self.getDataInput().getDoOnlyIntegrationWithXMLOutput().getValue()
if self.bStoreImageQualityIndicatorsInISPyB:
self.edPluginISPyBStoreImageQualityIndicators = self.loadPlugin(self.strISPyBStoreImageQualityIndicatorsPluginName, \
"ISPyBStoreImageQualityIndicators")
def process(self, _edObject=None):
EDPluginControl.process(self)
self.DEBUG("EDPluginControlGridScreeningv1_0.process")
xsDataInputReadImageHeader = XSDataInputReadImageHeader()
xsDataInputReadImageHeader.setImage(image=XSDataFile(path=XSDataString(self.strImageFile)))
self.edPluginControlReadImageHeader.setDataInput(xsDataInputReadImageHeader)
self.edPluginControlReadImageHeader.connectSUCCESS(self.doSuccessReadImageHeader)
self.edPluginControlReadImageHeader.connectFAILURE(self.doFailureReadImageHeader)
self.executePluginSynchronous(self.edPluginControlReadImageHeader)
#.........这里部分代码省略.........