@@ -36,20 +36,18 @@ def test_conditional_arguments(monkeypatch):
3636 get_parser ().parse_args (no_img )
3737
3838
39- @pytest .mark .parametrize ("estimator,fir_delays,hrf_model,part_label" ,
40- [('lsa' , None , 'spm' , '01' ),
41- ('lss' , None , 'spm' , 'sub-01' ),
42- ('lss' , [0 , 1 , 2 , 3 , 4 ], 'fir' , None )])
39+ @pytest .mark .parametrize ("use_atlas, estimator,fir_delays,hrf_model,part_label" ,
40+ [(True , 'lsa' , None , 'spm' , '01' ),
41+ (False , 'lss' , None , 'spm' , 'sub-01' ),
42+ (True , 'lss' , [0 , 1 , 2 , 3 , 4 ], 'fir' , None )])
4343def test_nibs (
4444 bids_dir , deriv_dir , sub_fmriprep , sub_metadata , bold_file , preproc_file ,
4545 sub_events , confounds_file , brainmask_file , atlas_file , atlas_lut ,
46- estimator , fir_delays , hrf_model , monkeypatch , part_label ):
46+ estimator , fir_delays , hrf_model , monkeypatch , part_label , use_atlas ):
4747 import sys
4848 bids_dir = str (bids_dir )
4949 out_dir = os .path .join (bids_dir , 'derivatives' )
5050 args = ["nibs" ,
51- "-a" , str (atlas_file ),
52- "-l" , str (atlas_lut ),
5351 "-c" , "white_matter" , "csf" ,
5452 "--high-pass" , "0.008" ,
5553 "--estimator" , estimator ,
@@ -66,6 +64,8 @@ def test_nibs(
6664 out_dir ,
6765 "participant" ,
6866 "-c" , ".*derivative.*" ]
67+ if use_atlas :
68+ args .extend (["-a" , str (atlas_file ), "-l" , str (atlas_lut )])
6969 if fir_delays :
7070 args .append ('--fir-delays' )
7171 args .extend ([str (d ) for d in fir_delays ])
0 commit comments