Skip to content

Global option to disable automatic scaling #1417

@kchawla-pi

Description

@kchawla-pi

Nibabel version in use: 5.3.*

Since Nibabel v5.0.0, Nibabel has enable automatic scaling for dtype int. This has created a big problem for us when loading Nifti masks/labels. We have a microservices based platform and Nibabel is imported and used to load, save images at a large number of places. It is proving to be very inconvenient to change the code to do nibabel.Nifti1Image().header.set_slope_inter(1, 0) everywhere necessary.

Currently we have downgraded to Nibabel v4.* to circumvent this problem (thought that is creating other difficulties, mostly due to older bugs, but that is easier for us to handle manually).

It would be most helpful to have a way to set this option globally at the start of a service.

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