Skip to content

Incorrect extension identified when checking the extensions metadata of File traits #2984

Closed
@servoz

Description

@servoz

I observe the following message when defining the input parameter in_files (for example for the nipype.interfaces.spm.preprocess.smooth class / process) :

<class 'traits.trait_errors.TraitError'>: Each element of the 'in_files' trait of a Pipeline instance must be a pathlike object or string representing an existing file, but a value of '/Users/invites/Documents/data/projects_populse_mia/test0/data/raw_data/alej170316_test24042018-IRM_Fonct._+_perfusion-2016-03-17_08-34-44-05-01-T1_3D_SENSE-T1TFE-00-04-25.000.nii' <class 'str'> was specified.

The result is that the in_files remains at <undefined>.

It seems that the problem concerns the nipype.interfaces.spm.base.ImageFileSPM class and the nipype.interfaces.base.traits_extension.ImageFile class.

The problem was not observed until June 25 (I do not observe the problem with the nipype repository corresponding to commit e722d61) and has been observed since July 16 (observed at least since the nipype repository corresponding to commit b76860d).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions