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


Python CreateTaskBase.init_models方法代码示例

本文整理汇总了Python中Qt4_create_task_base.CreateTaskBase.init_models方法的典型用法代码示例。如果您正苦于以下问题:Python CreateTaskBase.init_models方法的具体用法?Python CreateTaskBase.init_models怎么用?Python CreateTaskBase.init_models使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Qt4_create_task_base.CreateTaskBase的用法示例。


在下文中一共展示了CreateTaskBase.init_models方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     CreateTaskBase.init_models(self)
     self.xrf_spectrum_model = queue_model_objects.XRFSpectrum()
     self._path_template.start_num = 1
     self._path_template.num_files = 1
     self._path_template.suffix = 'raw'
     self._path_template.compression = False
开发者ID:MartinSavko,项目名称:mxcube,代码行数:9,代码来源:Qt4_create_xrf_spectrum_widget.py

示例2: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     """
     Descript. :
     """
     CreateTaskBase.init_models(self)
     self._energy_scan_result = queue_model_objects.EnergyScanResult()
     self._processing_parameters = queue_model_objects.ProcessingParameters()
开发者ID:milanprica,项目名称:mxcube,代码行数:9,代码来源:Qt4_create_discrete_widget.py

示例3: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     """
     Descript. :
     """
     CreateTaskBase.init_models(self)
     self.enery_scan = queue_model_objects.EnergyScan()
     self._path_template.start_num = 1
     self._path_template.num_files = 1
     self._path_template.suffix = 'raw'
开发者ID:douglasbeniz,项目名称:mxcube,代码行数:11,代码来源:Qt4_create_energy_scan_widget.py

示例4: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
    def init_models(self):
        """
        Descript. :
        """
        CreateTaskBase.init_models(self)

        self._xray_imaging_parameters = queue_model_objects.XrayImagingParameters()

        if self._beamline_setup_hwobj is not None:
            self._acquisition_parameters = self._beamline_setup_hwobj.\
                get_default_acquisition_parameters("default_imaging_values")
            self._path_template.suffix = 'tiff'
开发者ID:vrey01,项目名称:mxcube,代码行数:14,代码来源:Qt4_create_xray_imaging_widget.py

示例5: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
    def init_models(self):
        CreateTaskBase.init_models(self)
        self._processing_parameters = queue_model_objects.ProcessingParameters()

        if self._beamline_setup_hwobj is not None:
            has_shutter_less = self._beamline_setup_hwobj.\
                               detector_has_shutterless()
            self._acquisition_parameters.shutterless = has_shutter_less

            self._acquisition_parameters = self._beamline_setup_hwobj.\
                get_default_acquisition_parameters("default_acquisition_values")
            self._acquisition_parameters.num_triggers = 1
            self._acquisition_parameters.num_images_per_trigger = 1
            self._processing_widget.processing_widget.run_processing_parallel_cbox.setChecked(\
                self._beamline_setup_hwobj._get_run_processing_parallel())
开发者ID:vrey01,项目名称:mxcube,代码行数:17,代码来源:Qt4_create_still_scan_widget.py

示例6: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
    def init_models(self):
        """
        Descript. :
        """
        CreateTaskBase.init_models(self)
        #self._energy_scan_result = queue_model_objects.EnergyScanResult()
        self._processing_parameters = queue_model_objects.ProcessingParameters()

        if self._beamline_setup_hwobj is not None:
            has_shutter_less = self._beamline_setup_hwobj.\
                               detector_has_shutterless()
            self._acquisition_parameters.shutterless = has_shutter_less

            self._acquisition_parameters = self._beamline_setup_hwobj.\
                get_default_acquisition_parameters("default_acquisition_values")
            self._processing_widget.processing_widget.run_processing_parallel_cbox.setChecked(\
                self._beamline_setup_hwobj._get_run_processing_parallel())
开发者ID:vrey01,项目名称:mxcube,代码行数:19,代码来源:Qt4_create_discrete_widget.py

示例7: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
    def init_models(self):
        """
        Descript. :
        """
        CreateTaskBase.init_models(self)
        self._processing_parameters = queue_model_objects.ProcessingParameters()

        if self._beamline_setup_hwobj is not None:
            has_shutter_less = self._beamline_setup_hwobj.\
                               detector_has_shutterless()
            self._acquisition_parameters.shutterless = has_shutter_less

            self._acquisition_parameters = self._beamline_setup_hwobj.\
                get_default_acquisition_parameters("default_advanced_values")
            self.__mini_diff_hwobj = self._beamline_setup_hwobj.\
                                     diffractometer_hwobj
        else:
            self._acquisition_parameters = queue_model_objects.AcquisitionParameters()
            self._path_template = queue_model_objects.PathTemplate()
开发者ID:folf,项目名称:mxcube,代码行数:21,代码来源:Qt4_create_advanced_scan_widget.py

示例8: _init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
    def _init_models(self):
        """
        Descript. :
        """
        CreateTaskBase.init_models(self)
        self._processing_parameters = queue_model_objects.ProcessingParameters()

        if self._beamline_setup_hwobj is not None:
            has_shutter_less = self._beamline_setup_hwobj.\
                               detector_has_shutterless()
            self._acquisition_parameters.shutterless = has_shutter_less

            self._acquisition_parameters = self._beamline_setup_hwobj.\
                get_default_acquisition_parameters("default_advanced_values")

            if not self._advanced_methods:
                self._advanced_methods = self._beamline_setup_hwobj.get_advanced_methods()            
                if self._advanced_methods:
                   for method in self._advanced_methods:
                       self._advanced_methods_widget.method_combo.addItem(method)
                else:
                   self.setEnabled(False)    

            self.grid_treewidget_item_selection_changed()
开发者ID:vrey01,项目名称:mxcube,代码行数:26,代码来源:Qt4_create_advanced_widget.py

示例9: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     """
     Descript. :
     """
     CreateTaskBase.init_models(self)
     self._init_models()
开发者ID:vrey01,项目名称:mxcube,代码行数:8,代码来源:Qt4_create_char_widget.py

示例10: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     CreateTaskBase.init_models(self)
     self.enery_scan = queue_model_objects.XRFScan()
     self._path_template.start_num = 1
     self._path_template.num_files = 1
     self._path_template.suffix = "raw"
开发者ID:folf,项目名称:mxcube,代码行数:8,代码来源:Qt4_create_xrf_scan_widget.py

示例11: init_models

# 需要导入模块: from Qt4_create_task_base import CreateTaskBase [as 别名]
# 或者: from Qt4_create_task_base.CreateTaskBase import init_models [as 别名]
 def init_models(self):
     CreateTaskBase.init_models(self)
     self._init_models()
开发者ID:MartinSavko,项目名称:mxcube,代码行数:5,代码来源:Qt4_create_gphl_workflow_widget.py


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