本文整理汇总了Python中sans.gui_logic.models.state_gui_model.StateGuiModel.wavelength_adjustment_det_2方法的典型用法代码示例。如果您正苦于以下问题:Python StateGuiModel.wavelength_adjustment_det_2方法的具体用法?Python StateGuiModel.wavelength_adjustment_det_2怎么用?Python StateGuiModel.wavelength_adjustment_det_2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sans.gui_logic.models.state_gui_model.StateGuiModel
的用法示例。
在下文中一共展示了StateGuiModel.wavelength_adjustment_det_2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_adjustment_files_can_be_set
# 需要导入模块: from sans.gui_logic.models.state_gui_model import StateGuiModel [as 别名]
# 或者: from sans.gui_logic.models.state_gui_model.StateGuiModel import wavelength_adjustment_det_2 [as 别名]
def test_that_adjustment_files_can_be_set(self):
state_gui_model = StateGuiModel({"test": [1]})
state_gui_model.wavelength_adjustment_det_1 = "wav1.txt"
state_gui_model.wavelength_adjustment_det_2 = "wav2.txt"
state_gui_model.pixel_adjustment_det_1 = "pix1.txt"
state_gui_model.pixel_adjustment_det_2 = "pix2.txt"
self.assertTrue(state_gui_model.wavelength_adjustment_det_1 == "wav1.txt")
self.assertTrue(state_gui_model.wavelength_adjustment_det_2 == "wav2.txt")
self.assertTrue(state_gui_model.pixel_adjustment_det_1 == "pix1.txt")
self.assertTrue(state_gui_model.pixel_adjustment_det_2 == "pix2.txt")