本文整理匯總了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