Skip to content

Commit 18af918

Browse files
authored
changes slice_order type from Int to Float
With the newer SPM12, it is now possible to use "slice onsets" in milliseconds, instead of the good old simple slice order. I've tested if there is any difference between slice_order [0 1 2 3,...] or [0.0 1.0 2.0 3.0,...] and with my test data there was none. SPM12 and SPM8, both accept the float point approach, but SPM8 crashes if one tries to use actual onsets, i.e. [0.0 66.66 133.33, 200.0...].
1 parent ca65037 commit 18af918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class SliceTimingInputSpec(SPMCommandInputSpec):
4646
desc=('time of volume acquisition. usually'
4747
'calculated as TR-(TR/num_slices)'),
4848
mandatory=True)
49-
slice_order = traits.List(traits.Int(), field='so',
50-
desc=('1-based order in which slices are '
49+
slice_order = traits.List(traits.Float(), field='so',
50+
desc=('1-based order or onset in which slices are '
5151
'acquired'),
5252
mandatory=True)
5353
ref_slice = traits.Int(field='refslice',

0 commit comments

Comments
 (0)