Skip to content

Error when loading a .npy file containing a scalar value #517

@thalesfm

Description

@thalesfm

Due to an off-by-one error, np.load fails to parse the file's header when shape = () and triggers an ArgumentOutOfRangeException
(Also, the function doesn't consider this possibility when calculating the size of the underlying buffer).

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