Skip to content

giftiio.write deprecation; suggested alternative misleading #880

@tomfrankkirk

Description

@tomfrankkirk

Nibabel version 2.5.1

I have a gifti functional image object that I would like to save. When I use top level save function, as in nibabel.save(obj, 'gifti.func.gii'), the files that are produced are not readable by other tools (though nibabel does not give any warnings).

When I use giftiio.write(obj, 'gifti.func.gii'), the produced files interact nicely with other tools, though I get the following deprecation warning DeprecationWarning: giftiio.write function deprecated. Use nibabel.load() instead.

There are two issues: nibabel.save() does not produce useable functional giftis, unlike giftiio.write(), and the suggested alternative of nibabel.load() does not make sense in this context anyway.

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