当前位置: 首页>>代码示例>>Python>>正文


Python XSDataSampleCrystalMM.setAbsorbedDoseRate方法代码示例

本文整理汇总了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
开发者ID:jordiandreu,项目名称:edna-mx,代码行数:70,代码来源:EDPluginControlStrategyv1_2.py


注:本文中的XSDataMXv1.XSDataSampleCrystalMM.setAbsorbedDoseRate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。