Skip to content

Commit 200e944

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype
* 'master' of https://github.com/nipy/nipype: enable model fitting even when no conditions are defined - useful for detrending
2 parents f68a2d1 + 1c8cd9e commit 200e944

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)