Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Oct 20, 2023
    ca41425
  2. added a commit that references this issue on Oct 20, 2023
    77b1759
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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