本文整理匯總了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()