Skip to content

Commit a05b6b0

Browse files
authored
Merge pull request #202 from adelavega/fix/missing_ignore
FIX: Don't pass ignore and force index to init_fitlins_wf
2 parents ad0a153 + e96fd3e commit a05b6b0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

fitlins/cli/run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def get_parser():
9494
default='MNI152NLin2009cAsym',
9595
help='registered space of input datasets. '
9696
'Empty value for no explicit space.')
97-
g_bids.add_argument('--force-index', action='store', default=None,
97+
g_bids.add_argument('--force-index', action='store', default=None, nargs='+',
9898
help='regex pattern or string to include files')
99-
g_bids.add_argument('--ignore', action='store', default=None,
99+
g_bids.add_argument('--ignore', action='store', default=None, nargs='+',
100100
help='regex pattern or string to ignore files')
101101
g_bids.add_argument('--desc-label', action='store', default='preproc',
102102
help="use BOLD files with the provided description label")
@@ -207,7 +207,6 @@ def run_fitlins(argv=None):
207207
database_path = opts.database_path
208208
reset_database = False
209209

210-
211210
layout = BIDSLayout(opts.bids_dir,
212211
derivatives=derivatives,
213212
ignore=ignore,
@@ -232,7 +231,6 @@ def run_fitlins(argv=None):
232231
analysis_level=opts.analysis_level, model=model,
233232
space=opts.space, desc=opts.desc_label,
234233
participants=subject_list, base_dir=work_dir,
235-
force_index=opts.force_index, ignore=opts.ignore,
236234
smoothing=opts.smoothing, drop_missing=opts.drop_missing,
237235
)
238236

fitlins/workflows/base.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
def init_fitlins_wf(database_path, out_dir, analysis_level, space,
66
desc=None, model=None, participants=None,
7-
ignore=None, force_index=None,
87
smoothing=None, drop_missing=False,
98
base_dir=None, name='fitlins_wf'):
109
from nipype.pipeline import engine as pe
@@ -39,10 +38,6 @@ def init_fitlins_wf(database_path, out_dir, analysis_level, space,
3938
'space': space}),
4039
name='loader')
4140

42-
if ignore is not None:
43-
loader.inputs.ignore = ignore
44-
if force_index is not None:
45-
loader.inputs.force_index = force_index
4641
if participants is not None:
4742
loader.inputs.selectors['subject'] = participants
4843
if database_path is not None:

0 commit comments

Comments
 (0)