本文整理汇总了Python中XSDataMXv1.XSDataSampleCrystalMM.setAbsorbedDoseRate方法的典型用法代码示例。如果您正苦于以下问题:Python XSDataSampleCrystalMM.setAbsorbedDoseRate方法的具体用法?Python XSDataSampleCrystalMM.setAbsorbedDoseRate怎么用?Python XSDataSampleCrystalMM.setAbsorbedDoseRate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSDataMXv1.XSDataSampleCrystalMM
的用法示例。
在下文中一共展示了XSDataSampleCrystalMM.setAbsorbedDoseRate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EDPluginControlStrategyv1_2
# 需要导入模块: from XSDataMXv1 import XSDataSampleCrystalMM [as 别名]
# 或者: from XSDataMXv1.XSDataSampleCrystalMM import setAbsorbedDoseRate [as 别名]
#.........这里部分代码省略.........
roundUpToEven100=self.roundUpToEven100,
)
else:
xsDataResultStrategy = self._edHandlerXSDataBest.getXSDataResultStrategy(
xsDataResultBest,
self.getDataInput().getExperimentalCondition(),
self._xsDataSampleCopy,
roundUpToEven100=self.roundUpToEven100,
)
if self.xsDataFileRaddoseLog is not None:
xsDataResultStrategy.setRaddoseLogFile(self.xsDataFileRaddoseLog)
# Plots
if not self._edPluginPlotGle.isFailure() and self._edPluginPlotGle.dataOutput is not None:
listFileGraph = self._edPluginPlotGle.dataOutput.fileGraph
xsDataResultStrategy.bestGraphFile = listFileGraph
# Sample
xsDataResultStrategy.setSample(self._xsDataSampleCopy)
# timeToReachHendersonLimit
if self._edPluginRaddose is not None:
xsDataRaddoseOutput = self._edPluginRaddose.dataOutput
if xsDataRaddoseOutput is not None:
xsDataResultStrategy.timeToReachHendersonLimit = xsDataRaddoseOutput.timeToReachHendersonLimit
self.setDataOutput(xsDataResultStrategy)
self.generateStrategyShortSummary(xsDataResultStrategy)
def doRaddoseToBestTransition(self, _edPlugin):
self.DEBUG("EDPluginControlStrategyv1_2.doRaddoseToBestTransition")
self.retrieveSuccessMessages(_edPlugin, "EDPluginControlStrategyv1_2.doRaddoseToBestTransition")
xsDataRaddoseOutput = self._edPluginRaddose.getDataOutput()
# update the strategy data with the data coming from Raddose
self._xsDataSampleCopy.setAbsorbedDoseRate(xsDataRaddoseOutput.getAbsorbedDoseRate())
if xsDataRaddoseOutput.getPathToLogFile() != None:
self.xsDataFileRaddoseLog = xsDataRaddoseOutput.getPathToLogFile()
# Call the Best Translator layer
from EDHandlerXSDataBestv1_2 import EDHandlerXSDataBestv1_2
self._edHandlerXSDataBest = EDHandlerXSDataBestv1_2()
xsDataInputStrategyCopy = XSDataInputStrategy.parseString(self.getDataInput().marshal())
xsDataInputStrategyCopy.setSample(self._xsDataSampleCopy)
xsDataInputBest = self._edHandlerXSDataBest.getXSDataInputBest(xsDataInputStrategyCopy)
self._edPluginBest.setDataInput(xsDataInputBest)
self._edPluginBest.executeSynchronous()
def doFailureActionRaddose(self, _edPlugin=None):
"""
retrieve the potential warning messages
retrieve the potential error messages
"""
self.DEBUG("EDPluginControlStrategyv1_2.doFailureActionRaddose")
self.retrieveFailureMessages(_edPlugin, "EDPluginControlStrategyv1_2.doFailureActionRaddose")
strWarningMessage = "EDPluginControlStrategyv1_2: Raddose failure"
self.warning(strWarningMessage)
self.addWarningMessage(strWarningMessage)
self.executeBest(self)
def executeBest(self, _edPlugin=None):
# Call the Best Translator layer
from EDHandlerXSDataBestv1_2 import EDHandlerXSDataBestv1_2