Skip to content

Bug: NumpyReader for .npz files with variable names. #7147

@mandelkow

Description

@mandelkow

npz_keys = [f"arr_{i}" for i in range(len(img))] if self.npz_keys is None else self.npz_keys

If npz_keys is not given, NumpyReader assumes variables in .npz files to be named arr_0, arr_1,...
This may or may not be true. It would be better to use the variable names from the file like so:

                npz_keys = self.npz_keys if self.npz_keys else list( img.keys() ) # or img.files

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