Skip to content

Currently it is not possible to launch SPM SliceTiming if the input parameters slice_order and ref_slice are set in slice times (ms). #3254

Closed
@servoz

Description

@servoz

In fact it is only possible to use SPM SliceTiming if slice_order and ref_slice are set to slice indices.

Indeed, the SliceTimingInputSpec class of the module nipype.interfaces.spm.preprocess defines ref_slice = traits.Int(.....).
So if we set ref_slice in (ms) an execption is raised because refslice is a float and not an integer:
traits.trait_errors.TraitError: The 'ref_slice' trait of a SliceTimingInputSpec instance must be an integer, but a value of 1471.6990943396227 <class 'float'> was specified.

I propose a PR with a small correction for ref_slice (and also slice_order) so that both cases (index, or times (ms)) will work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions