Skip to content

Commit 81670e4

Browse files
committed
BF: allowing bids_event_file as alternate input
1 parent 37e48ec commit 81670e4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

nipype/algorithms/modelgen.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ class SpecifyModelInputSpec(BaseInterfaceInputSpec):
233233
subject_info = InputMultiPath(
234234
Bunch,
235235
mandatory=True,
236-
xor=['subject_info', 'event_files'],
236+
xor=['subject_info', 'event_files', 'bids_event_file'],
237237
desc='Bunch or List(Bunch) subject-specific '
238238
'condition information. see '
239239
':ref:`SpecifyModel` or '
240240
'SpecifyModel.__doc__ for details')
241241
event_files = InputMultiPath(
242242
traits.List(File(exists=True)),
243243
mandatory=True,
244-
xor=['subject_info', 'event_files'],
244+
xor=['subject_info', 'event_files', 'bids_event_file'],
245245
desc='List of event description files 1, 2 or 3 '
246246
'column format corresponding to onsets, '
247247
'durations and amplitudes')

nipype/algorithms/tests/test_auto_SpecifyModel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_SpecifyModel_inputs():
2020
),
2121
event_files=dict(
2222
mandatory=True,
23-
xor=['subject_info', 'event_files'],
23+
xor=['subject_info', 'event_files', 'bids_event_file'],
2424
),
2525
functional_runs=dict(
2626
copyfile=False,
@@ -33,7 +33,7 @@ def test_SpecifyModel_inputs():
3333
realignment_parameters=dict(copyfile=False, ),
3434
subject_info=dict(
3535
mandatory=True,
36-
xor=['subject_info', 'event_files'],
36+
xor=['subject_info', 'event_files', 'bids_event_file'],
3737
),
3838
time_repetition=dict(mandatory=True, ),
3939
)

nipype/algorithms/tests/test_auto_SpecifySPMModel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_SpecifySPMModel_inputs():
2121
concatenate_runs=dict(usedefault=True, ),
2222
event_files=dict(
2323
mandatory=True,
24-
xor=['subject_info', 'event_files'],
24+
xor=['subject_info', 'event_files', 'bids_event_file'],
2525
),
2626
functional_runs=dict(
2727
copyfile=False,
@@ -35,7 +35,7 @@ def test_SpecifySPMModel_inputs():
3535
realignment_parameters=dict(copyfile=False, ),
3636
subject_info=dict(
3737
mandatory=True,
38-
xor=['subject_info', 'event_files'],
38+
xor=['subject_info', 'event_files', 'bids_event_file'],
3939
),
4040
time_repetition=dict(mandatory=True, ),
4141
)

nipype/algorithms/tests/test_auto_SpecifySparseModel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_SpecifySparseModel_inputs():
2020
),
2121
event_files=dict(
2222
mandatory=True,
23-
xor=['subject_info', 'event_files'],
23+
xor=['subject_info', 'event_files', 'bids_event_file'],
2424
),
2525
functional_runs=dict(
2626
copyfile=False,
@@ -38,7 +38,7 @@ def test_SpecifySparseModel_inputs():
3838
stimuli_as_impulses=dict(usedefault=True, ),
3939
subject_info=dict(
4040
mandatory=True,
41-
xor=['subject_info', 'event_files'],
41+
xor=['subject_info', 'event_files', 'bids_event_file'],
4242
),
4343
time_acquisition=dict(mandatory=True, ),
4444
time_repetition=dict(mandatory=True, ),

0 commit comments

Comments
 (0)