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


Python DotDict.op方法代码示例

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


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

示例1: setUp

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
    def setUp(self):
        super(DiscoveryIntTest, self).setUp()

        self._start_container()
        self.addCleanup(DiscoveryIntTest.es_cleanup)
        self.container.start_rel_from_url('res/deploy/r2dm.yml')

        self.discovery = DiscoveryServiceClient()
        self.catalog   = CatalogManagementServiceClient()
        self.ims       = IndexManagementServiceClient()
        self.rr        = ResourceRegistryServiceClient()

        if use_es:
            self.es_host   = CFG.get_safe('server.elasticsearch.host', 'localhost')
            self.es_port   = CFG.get_safe('server.elasticsearch.port', '9200')
            CFG.server.elasticsearch.shards         = 1
            CFG.server.elasticsearch.replicas       = 0
            CFG.server.elasticsearch.river_shards   = 1
            CFG.server.elasticsearch.river_replicas = 0
            self.es = ep.ElasticSearch(
                host=self.es_host,
                port=self.es_port,
                timeout=10,
                verbose=True
            )
            op = DotDict(CFG)
            op.op = 'clean_bootstrap'
            self.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap', op)
开发者ID:ooici-eoi,项目名称:coi-services,代码行数:30,代码来源:discovery_test.py

示例2: preload

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload(self):
     config = DotDict()
     config.op = 'load'
     config.scenario='BETA'
     config.categories='Parser,Reference'
     config.path='master'
     self.container.spawn_process('ion_loader', 'ion.processes.bootstrap.ion_loader','IONLoader',config)
开发者ID:MatthewArrott,项目名称:coi-services,代码行数:9,代码来源:test_qc_functions.py

示例3: lc_preload

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def lc_preload(self):
     config = DotDict()
     config.op = 'load'
     config.scenario = 'BASE,LC_TEST'
     config.categories = 'ParameterFunctions,ParameterDefs,ParameterDictionary'
     config.path = 'res/preload/r2_ioc'
     
     self.container.spawn_process('preload','ion.processes.bootstrap.ion_loader','IONLoader', config)
开发者ID:mbarry02,项目名称:coi-services,代码行数:10,代码来源:test_int_data_process_management_service.py

示例4: preload_ui

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_ui(self):
     config = DotDict()
     config.op='loadui'
     config.loadui=True
     config.attachments='res/preload/r2_ioc/attachments'
     config.ui_path = "http://userexperience.oceanobservatories.org/database-exports/Candidates"
     
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
开发者ID:ateranishi,项目名称:coi-services,代码行数:10,代码来源:test_dm_extended.py

示例5: preload_units

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_units(self):
     config = DotDict()
     config.op = 'load'
     config.attachments = "res/preload/r2_ioc/attachments"
     config.scenario = 'LC_UNITS'
     config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary'
     config.path = 'master'
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
开发者ID:ednad,项目名称:coi-services,代码行数:10,代码来源:test_data_process_functions.py

示例6: preload_tmpsf

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_tmpsf(self):
     config = DotDict()
     config.op = 'load'
     config.loadui=True
     config.ui_path =  "http://userexperience.oceanobservatories.org/database-exports/Candidates"
     config.attachments = "res/preload/r2_ioc/attachments"
     config.scenario = 'BETA,TMPSF'
     #config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary'
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
开发者ID:ateranishi,项目名称:coi-services,代码行数:11,代码来源:test_dm_extended.py

示例7: preload_vel3d_cd

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_vel3d_cd(self):
     config = DotDict()
     config.op = 'load'
     config.loadui=True
     config.ui_path =  "http://userexperience.oceanobservatories.org/database-exports/Candidates"
     config.attachments = "res/preload/r2_ioc/attachments"
     config.scenario = 'BETA,VEL3D_C'
     config.path = 'master'
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
开发者ID:ednad,项目名称:coi-services,代码行数:11,代码来源:dm_test_case.py

示例8: preload_example2

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_example2(self):
     config = DotDict()
     config.op = 'load'
     config.loadui=True
     config.ui_path =  "http://userexperience.oceanobservatories.org/database-exports/Candidates"
     config.attachments = "res/preload/r2_ioc/attachments"
     config.scenario = 'BETA,EXAMPLE2'
     config.path = 'master'
     #config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary,StreamDefinition,DataProduct'
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
开发者ID:ateranishi,项目名称:coi-services,代码行数:12,代码来源:test_dm_extended.py

示例9: preload_ctdgv

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
 def preload_ctdgv(self):
     config = DotDict()
     config.op = 'load'
     config.loadui=True
     config.ui_path =  "http://userexperience.oceanobservatories.org/database-exports/Candidates"
     config.attachments = "res/preload/r2_ioc/attachments"
     config.scenario = 'BETA,GLIDER,CTDGV,CTDGV01'
     config.path = 'master'
     #config.categories='ParameterFunctions,ParameterDefs,ParameterDictionary,StreamDefinition,DataProduct'
     self.container.spawn_process('preloader', 'ion.processes.bootstrap.ion_loader', 'IONLoader', config)
     self.container.spawn_process('agentctrl', 'ion.agents.agentctrl', 'AgentControl', {'op':'load', 'instrument':'CTDGV'})
开发者ID:ednad,项目名称:coi-services,代码行数:13,代码来源:dm_test_case.py

示例10: on_initial_bootstrap

# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import op [as 别名]
    def on_initial_bootstrap(self, process, config, **kwargs):
        if config.get_safe('system.elasticsearch') and config.get_safe('bootstrap.use_es'):
            #---------------------------------------------
            # Spawn the index bootstrap
            #---------------------------------------------
            config = DotDict(config)
            config.op                   = 'clean_bootstrap'

            process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
            #---------------------------------------------
        else:
            log.info("Not creating the ES indexes.")
开发者ID:Bobfrat,项目名称:coi-services,代码行数:14,代码来源:bootstrap_index.py


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