Skip to content

Commit 1809526

Browse files
0rC0effigies
andauthored
Update nipype/interfaces/cat12/preprocess.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 329e9be commit 1809526

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/cat12/preprocess.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,9 @@ def _format_arg(self, opt, spec, val):
726726
return scans_for_fnames(val)
727727
else:
728728
return scans_for_fname(val)
729-
729+
if opt == "spm_type":
730+
type_map = {"same": 0, "uint8": 2, "uint16": 512, "float32": 16}
731+
val = type_map[val]
730732
return super(CAT12SANLMDenoising, self)._format_arg(opt, spec, val)
731733

732734
def _list_outputs(self):

0 commit comments

Comments
 (0)