本文整理汇总了Python中Qt4_create_task_base.CreateTaskBase.set_beamline_setup方法的典型用法代码示例。如果您正苦于以下问题:Python CreateTaskBase.set_beamline_setup方法的具体用法?Python CreateTaskBase.set_beamline_setup怎么用?Python CreateTaskBase.set_beamline_setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Qt4_create_task_base.CreateTaskBase
的用法示例。
在下文中一共展示了CreateTaskBase.set_beamline_setup方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_beamline_setup
# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import set_beamline_setup [as 别名]
def set_beamline_setup(self, bl_setup_hwobj):
"""
In plate mode osciallation is start is in the middle of grid
"""
CreateTaskBase.set_beamline_setup(self, bl_setup_hwobj)
if bl_setup_hwobj.diffractometer_hwobj.in_plate_mode():
self._acq_widget.acq_widget_layout.osc_start_label.\
setText("Oscillation middle:")
示例2: set_beamline_setup
# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import set_beamline_setup [as 别名]
def set_beamline_setup(self, bl_setup_hwobj):
"""
In plate mode oscillation start is in the middle of the grid
"""
CreateTaskBase.set_beamline_setup(self, bl_setup_hwobj)
self._acq_widget.acq_widget_layout.osc_start_label.\
setText("Oscillation middle:")
hor_size, ver_size = bl_setup_hwobj.beam_info_hwobj.get_beam_size()
self.spacing[0] = hor_size
self.spacing[1] = ver_size
self._advanced_methods_widget.hor_spacing_ledit.setText(\
"%.1f" % (hor_size * 1000))
self._advanced_methods_widget.ver_spacing_ledit.setText(\
"%.1f" % (ver_size * 1000))
示例3: set_beamline_setup
# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import set_beamline_setup [as 别名]
def set_beamline_setup(self, bl_setup_hwobj):
"""
In plate mode osciallation is start is in the middle of grid
"""
CreateTaskBase.set_beamline_setup(self, bl_setup_hwobj)
bl_setup_hwobj.omega_axis_hwobj.connect('positionChanged', self.set_osc_start)
self._acq_widget.acq_widget_layout.osc_start_label.\
setText("Oscillation middle:")
hor_size, ver_size = bl_setup_hwobj.beam_info_hwobj.get_beam_size()
self.spacing = [hor_size, ver_size]
self._advanced_methods_widget.hor_spacing_ledit.setText(\
"%.1f" % (hor_size * 1000))
self._advanced_methods_widget.ver_spacing_ledit.setText(\
"%.1f" % (ver_size * 1000))
示例4: set_beamline_setup
# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import set_beamline_setup [as 别名]
def set_beamline_setup(self, bl_setup_hwobj):
CreateTaskBase.set_beamline_setup(self, bl_setup_hwobj)
try:
self._periodic_table_widget.set_elements(\
self._beamline_setup_hwobj.energyscan_hwobj.getElements())
max_transmission_value = self._beamline_setup_hwobj.\
energyscan_hwobj.get_max_transmission_value()
self._adjust_transmission_cbox.setEnabled(True)
self._adjust_transmission_cbox.setChecked(True)
self._beamline_setup_hwobj.energyscan_hwobj.adjust_transmission(True)
if max_transmission_value:
self._max_transmission_ledit.setText("%.2f" % max_transmission_value)
except:
pass
示例5: set_beamline_setup
# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import set_beamline_setup [as 别名]
def set_beamline_setup(self, bl_setup_hwobj):
"""
In plate mode osciallation is start is in the middle of grid
"""
CreateTaskBase.set_beamline_setup(self, bl_setup_hwobj)