本文整理汇总了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()
示例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'
示例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')
示例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')
示例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')
示例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))
示例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()