Skip to content

Commit 698f93a

Browse files
author
Monika_Utrosa_Skerjanec
committed
Fix SPM output type for version 25
1 parent 8234ec3 commit 698f93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/spm/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def _parse_inputs(self):
315315
def _list_outputs(self):
316316
outputs = self._outputs().get()
317317
pth = os.path.dirname(self.inputs.spm_mat_file)
318-
outtype = "nii" if "12" in self.version.split(".")[0] else "img"
318+
outtype = "nii" if self.version.split(".")[0] in ["12", "25"] else "img"
319319
spm = load_spm_mat(self.inputs.spm_mat_file, struct_as_record=False)
320320

321321
betas = [vbeta.fname[0] for vbeta in spm["SPM"][0, 0].Vbeta[0]]

0 commit comments

Comments
 (0)