本文整理匯總了Python中pylinac.vmat.VMAT.run_demo_drgs方法的典型用法代碼示例。如果您正苦於以下問題:Python VMAT.run_demo_drgs方法的具體用法?Python VMAT.run_demo_drgs怎麽用?Python VMAT.run_demo_drgs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pylinac.vmat.VMAT
的用法示例。
在下文中一共展示了VMAT.run_demo_drgs方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Test_DRGS_demo
# 需要導入模塊: from pylinac.vmat import VMAT [as 別名]
# 或者: from pylinac.vmat.VMAT import run_demo_drgs [as 別名]
class Test_DRGS_demo(VMATMixin, unittest.TestCase):
"""Tests of the result values of the DRGS demo images."""
def setUp(self):
self.vmat = VMAT()
self.vmat.load_demo_image('drgs')
self.vmat.settings.x_offset = 20
def test_demo(self):
"""Run the demo; no errors should arise."""
self.vmat.run_demo_drgs()
def test_overall_passed(self):
"""Test that the overall pass flag is true for default settings"""
super().test_overall_passed('drgs')
def test_segment_positions(self):
"""Test various values of the Segments."""
self.vmat.analyze('drgs')
segment_dict = {0: Point(161, 192), 4: Point(314, 192)}
super().test_segment_positions(segment_dict)
def test_segment_values(self):
self.vmat.analyze('drgs')
segment_dict = {
0: {'r_dev': 0.965, 'r_corr': 101.85},
4: {'r_dev': -0.459, 'r_corr': 100.42},
}
super().test_segment_values(segment_dict)