Skip to content

Commit 1c8cd9e

Browse files
committed
Merge pull request #405 from chrisfilo/enh/nipymodel
enable model fitting even when no conditions are defined
2 parents 56c7b94 + 395b709 commit 1c8cd9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nipype/interfaces/nipy/model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ def _run_interface(self, runtime):
126126
duration += cond['duration']
127127

128128

129-
paradigm = BlockParadigm(con_id=conditions, onset=onsets, duration=duration)
129+
if conditions:
130+
paradigm = BlockParadigm(con_id=conditions, onset=onsets, duration=duration)
131+
else:
132+
paradigm = None
130133
design_matrix, self._reg_names = dm.dmtx_light(frametimes, paradigm, drift_model=drift_model, hfcut=hpf,
131134
hrf_model=self.inputs.hrf_model,
132135
add_regs=reg_vals,

0 commit comments

Comments
 (0)