本文整理汇总了Python中XSDataMXv1.XSDataInputStrategy.setXdsBackgroundImage方法的典型用法代码示例。如果您正苦于以下问题:Python XSDataInputStrategy.setXdsBackgroundImage方法的具体用法?Python XSDataInputStrategy.setXdsBackgroundImage怎么用?Python XSDataInputStrategy.setXdsBackgroundImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSDataMXv1.XSDataInputStrategy
的用法示例。
在下文中一共展示了XSDataInputStrategy.setXdsBackgroundImage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: doSuccessIntegration
# 需要导入模块: from XSDataMXv1 import XSDataInputStrategy [as 别名]
# 或者: from XSDataMXv1.XSDataInputStrategy import setXdsBackgroundImage [as 别名]
def doSuccessIntegration(self, _edPlugin=None):
EDVerbose.DEBUG("EDPluginControlCharacterisationv1_3.doSuccessIntegration")
self.retrieveSuccessMessages(_edPlugin, "EDPluginControlCharacterisationv1_3.doSuccessIntegration")
# Wait for XDS plugin if necessary
self._edPluginControlXDSGenerateBackgroundImage.synchronize()
self.addStatusMessage("Integration successful.")
xsDataIntegrationOutput = self._edPluginControlIntegration.getDataOutput()
self._xsDataResultCharacterisation.setIntegrationResult(xsDataIntegrationOutput)
# Integration short summary
if self._edPluginControlIntegration.hasDataOutput("integrationShortSummary"):
self._strCharacterisationShortSummary += self._edPluginControlIntegration.getDataOutput("integrationShortSummary")[0].getValue()
#EDVerbose.DEBUG( self._xsDataExperimentCharacterisation.marshal() )
if self._bDoStrategyCalculation:
xsDataInputStrategy = XSDataInputStrategy()
xsDataSolutionSelected = self._xsDataResultCharacterisation.getIndexingResult().getSelectedSolution()
xsDataInputStrategy.setCrystalRefined(xsDataSolutionSelected.getCrystal())
xsDataInputStrategy.setSample(self._xsDataResultCharacterisation.getDataCollection().getSample())
xsDataIntegrationSubWedgeResultList = xsDataIntegrationOutput.getIntegrationSubWedgeResult()
xsDataInputStrategy.setBestFileContentDat(xsDataIntegrationSubWedgeResultList[0].getBestfileDat())
xsDataInputStrategy.setBestFileContentPar(xsDataIntegrationSubWedgeResultList[0].getBestfilePar())
xsDataInputStrategy.setExperimentalCondition(xsDataIntegrationSubWedgeResultList[0].getExperimentalConditionRefined())
xsDataInputStrategy.setXdsBackgroundImage(self._xsDataFileXdsBackgroundImage)
for xsDataIntegrationSubWedgeResult in xsDataIntegrationSubWedgeResultList:
xsDataInputStrategy.addBestFileContentHKL(xsDataIntegrationSubWedgeResult.getBestfileHKL())
xsDataInputStrategy.setDiffractionPlan(self._xsDataResultCharacterisation.getDataCollection().getDiffractionPlan())
self._edPluginControlStrategy.setDataInput(xsDataInputStrategy)
self.executePluginSynchronous(self._edPluginControlStrategy)
示例2: doCharacterisationSuccess
# 需要导入模块: from XSDataMXv1 import XSDataInputStrategy [as 别名]
# 或者: from XSDataMXv1.XSDataInputStrategy import setXdsBackgroundImage [as 别名]
def doCharacterisationSuccess(self, _edPlugin=None):
EDVerbose.DEBUG("EDPluginControlCharForReorientationv2_0.doCharacterisationSuccess")
self.retrieveSuccessMessages(_edPlugin, "EDPluginControlCharacterisationv2_0.doCharacterisationSuccess")
self.xsDataResultCharacterisation = self.edPluginControlCharacterisation.getDataOutput()
# Check if kappa strategy is requested:
if self.strPluginStrategyName is not None:
self.edPluginControlStrategy = self.loadPlugin(self.strPluginStrategyName, \
"MXv2KappaStrategy")
xsDataInputStrategy = XSDataInputStrategy()
xsDataSolutionSelected = self.xsDataResultCharacterisation.getIndexingResult().getSelectedSolution()
xsDataInputStrategy.setCrystalRefined(xsDataSolutionSelected.getCrystal())
xsDataInputStrategy.setSample(self.xsDataResultCharacterisation.getDataCollection().getSample())
xsDataIntegrationSubWedgeResultList = self.xsDataResultCharacterisation.getIntegrationResult().getIntegrationSubWedgeResult()
xsDataInputStrategy.setBestFileContentDat(xsDataIntegrationSubWedgeResultList[0].getBestfileDat())
xsDataInputStrategy.setBestFileContentPar(xsDataIntegrationSubWedgeResultList[0].getBestfilePar())
xsDataInputStrategy.setExperimentalCondition(xsDataIntegrationSubWedgeResultList[0].getExperimentalConditionRefined())
xsDataInputStrategy.setDataCollection(self.mxv1InputCharacterisation.getDataCollection())
xsDataInputStrategy.setXdsBackgroundImage(self.xsDataResultCharacterisation.getXdsBackgroundImage())
for xsDataIntegrationSubWedgeResult in xsDataIntegrationSubWedgeResultList:
xsDataInputStrategy.addBestFileContentHKL(xsDataIntegrationSubWedgeResult.getBestfileHKL())
xsDataInputStrategy.setDiffractionPlan(self.xsDataResultCharacterisation.getDataCollection().getDiffractionPlan())
self.edPluginControlStrategy.setDataInput(xsDataInputStrategy, "mxv1InputStrategy")
self.edPluginControlStrategy.setDataInput(self.mxv2DataCollection, "mxv2DataCollection")
self.edPluginControlStrategy.setDataInput(self.xsDataResultCharacterisation.getIndexingResult(), "mxv1IndexingResult")
self.edPluginControlStrategy.connectSUCCESS(self.doStrategySuccess)
self.edPluginControlStrategy.connectFAILURE(self.doStrategyFailure)
self.executePluginSynchronous(self.edPluginControlStrategy)
示例3: doIntegrationToStrategyTransition
# 需要导入模块: from XSDataMXv1 import XSDataInputStrategy [as 别名]
# 或者: from XSDataMXv1.XSDataInputStrategy import setXdsBackgroundImage [as 别名]
def doIntegrationToStrategyTransition(self, _edPlugin=None):
self.DEBUG("EDPluginControlCharacterisationv2_0.doIntegrationToStrategyTransition")
self.retrieveSuccessMessages(_edPlugin, "EDPluginControlCharacterisationv2_0.doIntegrationToStrategyTransition")
xsDataIntegrationOutput = self.edPluginIntegration.getDataOutput()
self.xsDataResultCharacterisation.setIntegrationResult(xsDataIntegrationOutput)
#self.DEBUG( self.xsDataExperimentCharacterisation.marshal() )
from XSDataMXv1 import XSDataInputStrategy
xsDataInputStrategyOLD = XSDataInputStrategy()
xsDataSolutionSelected = self.xsDataResultCharacterisation.getIndexingResult().getSelectedSolution()
xsDataInputStrategyOLD.setCrystalRefined(xsDataSolutionSelected.getCrystal())
xsDataInputStrategyOLD.setSample(self.xsDataResultCharacterisation.getDataCollection().getSample())
xsDataIntegrationSubWedgeResultList = xsDataIntegrationOutput.getIntegrationSubWedgeResult()
xsDataInputStrategyOLD.setBestFileContentDat(xsDataIntegrationSubWedgeResultList[0].getBestfileDat())
xsDataInputStrategyOLD.setBestFileContentPar(xsDataIntegrationSubWedgeResultList[0].getBestfilePar())
xsDataInputStrategyOLD.setExperimentalCondition(xsDataIntegrationSubWedgeResultList[0].getExperimentalConditionRefined())
for xsDataIntegrationSubWedgeResult in xsDataIntegrationSubWedgeResultList:
xsDataInputStrategyOLD.addBestFileContentHKL(xsDataIntegrationSubWedgeResult.getBestfileHKL())
xsDataInputStrategyOLD.setDiffractionPlan(self.xsDataResultCharacterisation.getDataCollection().getDiffractionPlan())
xsDataInputStrategyOLD.setXdsBackgroundImage(self.xsDataResultCharacterisation.getXdsBackgroundImage())
#print xsDataInputStrategy.marshal()
self.edPluginStrategy.setDataInput(xsDataInputStrategyOLD, "mxv1InputStrategy")
if self.hasDataInput("mxv2DataCollection"):
self.edPluginStrategy.setDataInput(self.getDataInput("mxv2DataCollection")[0], "mxv2DataCollection")
self.edPluginStrategy.setDataInput(self.xsDataResultCharacterisation.getIndexingResult(), "mxv1IndexingResult")
self.edPluginStrategy.executeSynchronous()