Skip to content

Commit 399529f

Browse files
committed
FIX: Invalid metadata identified by check specs
1 parent 729375d commit 399529f

File tree

4 files changed

+8
-31
lines changed

4 files changed

+8
-31
lines changed

nipype/algorithms/modelgen.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,13 @@ class SpecifyModelInputSpec(BaseInterfaceInputSpec):
254254
xor=['subject_info', 'event_files', 'bids_event_file'],
255255
desc='TSV event file containing common BIDS fields: `onset`,'
256256
'`duration`, and categorization and amplitude columns')
257-
bids_condition_column = traits.Str(exists=True,
258-
mandatory=False,
257+
bids_condition_column = traits.Str(
259258
default_value='trial_type',
260259
usedefault=True,
261260
desc='Column of the file passed to `bids_event_file` to the '
262261
'unique values of which events will be assigned'
263262
'to regressors')
264-
bids_amplitude_column = traits.Str(exists=True,
265-
mandatory=False,
263+
bids_amplitude_column = traits.Str(
266264
desc='Column of the file passed to `bids_event_file` '
267265
'according to which to assign amplitudes to events')
268266
realignment_parameters = InputMultiPath(

nipype/algorithms/tests/test_auto_SpecifyModel.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55

66
def test_SpecifyModel_inputs():
77
input_map = dict(
8-
bids_amplitude_column=dict(
9-
exists=True,
10-
mandatory=False,
11-
),
12-
bids_condition_column=dict(
13-
exists=True,
14-
mandatory=False,
15-
usedefault=True,
16-
),
8+
bids_amplitude_column=dict(),
9+
bids_condition_column=dict(usedefault=True, ),
1710
bids_event_file=dict(
1811
mandatory=True,
1912
xor=['subject_info', 'event_files', 'bids_event_file'],

nipype/algorithms/tests/test_auto_SpecifySPMModel.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55

66
def test_SpecifySPMModel_inputs():
77
input_map = dict(
8-
bids_amplitude_column=dict(
9-
exists=True,
10-
mandatory=False,
11-
),
12-
bids_condition_column=dict(
13-
exists=True,
14-
mandatory=False,
15-
usedefault=True,
16-
),
8+
bids_amplitude_column=dict(),
9+
bids_condition_column=dict(usedefault=True, ),
1710
bids_event_file=dict(
1811
mandatory=True,
1912
xor=['subject_info', 'event_files', 'bids_event_file'],

nipype/algorithms/tests/test_auto_SpecifySparseModel.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55

66
def test_SpecifySparseModel_inputs():
77
input_map = dict(
8-
bids_amplitude_column=dict(
9-
exists=True,
10-
mandatory=False,
11-
),
12-
bids_condition_column=dict(
13-
exists=True,
14-
mandatory=False,
15-
usedefault=True,
16-
),
8+
bids_amplitude_column=dict(),
9+
bids_condition_column=dict(usedefault=True, ),
1710
bids_event_file=dict(
1811
mandatory=True,
1912
xor=['subject_info', 'event_files', 'bids_event_file'],

0 commit comments

Comments
 (0)