Skip to content

Commit 6a330bb

Browse files
committed
Make all Booleans to be formated as 1,0 in SPM
1 parent eacbf67 commit 6a330bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nipype/interfaces/spm/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,10 @@ def _list_outputs(self):
253253

254254
def _format_arg(self, opt, spec, val):
255255
"""Convert input to appropriate format for SPM."""
256-
257-
return val
256+
if spec.is_trait_type(traits.Bool):
257+
return int(val)
258+
else:
259+
return val
258260

259261
def _parse_inputs(self, skip=()):
260262
spmdict = {}

0 commit comments

Comments
 (0)