From 3e2f4580532a325f4afe76d6e8e833d161b32cdb Mon Sep 17 00:00:00 2001 From: Eric Condamine <37933899+servoz@users.noreply.github.com> Date: Mon, 21 Sep 2020 15:04:15 +0200 Subject: [PATCH] SPM SliceTiming must accept either Int or float for ref_slice and slice_order input parameter --- nipype/interfaces/spm/preprocess.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nipype/interfaces/spm/preprocess.py b/nipype/interfaces/spm/preprocess.py index 17dc03ff5a..a9d211aa83 100644 --- a/nipype/interfaces/spm/preprocess.py +++ b/nipype/interfaces/spm/preprocess.py @@ -276,12 +276,14 @@ class SliceTimingInputSpec(SPMCommandInputSpec): mandatory=True, ) slice_order = traits.List( - traits.Float(), + traits.Either(traits.Int(),traits.Float()), field="so", desc=("1-based order or onset (in ms) in which slices are acquired"), mandatory=True, ) - ref_slice = traits.Int( + ref_slice = traits.Either( + traits.Int(), + traits.Float(), field="refslice", desc="1-based Number of the reference slice or " "reference time point if slice_order is in "