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


Python CreateTaskBase.set_beamline_setup方法代码示例

本文整理汇总了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:")
开发者ID:jordiandreu,项目名称:mxcube,代码行数:11,代码来源:Qt4_create_advanced_widget.py

示例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))
开发者ID:vrey01,项目名称:mxcube,代码行数:18,代码来源:Qt4_create_advanced_widget.py

示例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))
开发者ID:MartinSavko,项目名称:mxcube,代码行数:19,代码来源:Qt4_create_advanced_widget.py

示例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
开发者ID:vrey01,项目名称:mxcube,代码行数:20,代码来源:Qt4_create_energy_scan_widget.py

示例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)
开发者ID:vrey01,项目名称:mxcube,代码行数:7,代码来源:Qt4_create_xray_imaging_widget.py


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