Skip to content

Commit 4e20016

Browse files
committed
fix: simplified format arg since trait catches errors
1 parent 20d9c60 commit 4e20016

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,13 +961,10 @@ def _format_arg(self, opt, spec, val):
961961
elif opt == 'bounding_box':
962962
return list(val)
963963
elif opt == 'fwhm':
964-
if not isinstance(val, list):
965-
return [val, val, val]
966964
if isinstance(val, list):
967-
if len(val) == 1:
968-
return [val[0], val[0], val[0]]
969-
else:
970-
return val
965+
return val
966+
else:
967+
return [val, val, val]
971968
elif opt == 'modulate':
972969
return int(val)
973970
else:

0 commit comments

Comments
 (0)