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


Python FMRITreatment.enable_draft_testing方法代码示例

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


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

示例1: test_sub_treatment

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
    def test_sub_treatment(self):

        t = FMRITreatment(output_dir=self.tmp_dir)
        t.enable_draft_testing()
        sub_ts = t.split()
        for sub_t in sub_ts:
            sub_t.run()
开发者ID:Solvi,项目名称:pyhrf,代码行数:9,代码来源:test_treatment.py

示例2: test_default_treatment_parallel_LAN

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
 def test_default_treatment_parallel_LAN(self):
     #pyhrf.verbose.set_verbosity(1)
     if cfg['parallel-LAN']['enable_unit_test'] == 1:
         t = FMRITreatment(make_outputs=False, result_dump_file=None,
                           output_dir=self.tmp_dir)
         t.enable_draft_testing()
         t.run(parallel='LAN')
     else:
         print 'LAN testing is off '\
           '([parallel-LAN][enable_unit_test] = 0 in ~/.pyhrf/config.cfg'
开发者ID:Solvi,项目名称:pyhrf,代码行数:12,代码来源:test_treatment.py

示例3: test_default_jde_cmd_parallel_local

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
 def test_default_jde_cmd_parallel_local(self):
     t = FMRITreatment(make_outputs=False, result_dump_file=None)
     t.enable_draft_testing()
     t_fn = op.join(self.tmp_dir, 'treatment.pck')
     fout = open(t_fn, 'w')
     cPickle.dump(t, fout)
     fout.close()
     cmd = 'pyhrf_jde_estim -t %s -x local' %t_fn
     if os.system(cmd) != 0:
         raise Exception('"' + cmd + '" did not execute correctly')
开发者ID:Solvi,项目名称:pyhrf,代码行数:12,代码来源:test_treatment.py

示例4: test_jde_estim_from_treatment_pck

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
    def test_jde_estim_from_treatment_pck(self):

        t = FMRITreatment(make_outputs=False, result_dump_file=None)
        t.enable_draft_testing()
        sub_ts = t.split()
        sub_t_fn = op.join(self.tmp_dir, 'treatment.pck')
        fout = open(sub_t_fn, 'w')
        cPickle.dump(sub_ts[0], fout)
        fout.close()
        cmd = 'pyhrf_jde_estim  -t %s' %sub_t_fn
        if os.system(cmd) != 0:
            raise Exception('"' + cmd + '" did not execute correctly')
开发者ID:Solvi,项目名称:pyhrf,代码行数:14,代码来源:test_treatment.py

示例5: test_default_treatment_parallel_local

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
 def test_default_treatment_parallel_local(self):
     t = FMRITreatment(make_outputs=False, result_dump_file=None)
     t.enable_draft_testing()
     t.run(parallel='local')
开发者ID:Solvi,项目名称:pyhrf,代码行数:6,代码来源:test_treatment.py

示例6: test_pickle_treatment

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
 def test_pickle_treatment(self):
     t = FMRITreatment(make_outputs=False, result_dump_file=None)
     t.enable_draft_testing()
     cPickle.loads(cPickle.dumps(t))
开发者ID:Solvi,项目名称:pyhrf,代码行数:6,代码来源:test_treatment.py

示例7: test_default_treatment

# 需要导入模块: from pyhrf.ui.treatment import FMRITreatment [as 别名]
# 或者: from pyhrf.ui.treatment.FMRITreatment import enable_draft_testing [as 别名]
    def test_default_treatment(self):

        #pyhrf.verbose.set_verbosity(4)
        t = FMRITreatment(make_outputs=False, result_dump_file=None)
        t.enable_draft_testing()
        t.run()
开发者ID:Solvi,项目名称:pyhrf,代码行数:8,代码来源:test_treatment.py


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