Skip to content

Fixes #517 error when loading a .npy file containing a scalar value#518

Closed
thalesfm wants to merge 4 commits intoSciSharp:masterfrom
thalesfm:fix-load-scalar
Closed

Fixes #517 error when loading a .npy file containing a scalar value#518
thalesfm wants to merge 4 commits intoSciSharp:masterfrom
thalesfm:fix-load-scalar

Conversation

@thalesfm
Copy link
Copy Markdown

No description provided.

@thalesfm thalesfm changed the title Fixes error when loading a .npy file containing a scalar value #517 Fixes #517 error when loading a .npy file containing a scalar value Sep 24, 2024
Fix parsing error when `shape` is an empty tuple.
When read as an `Array`, scalar values are interpreted as a single element array.
@Nucs
Copy link
Copy Markdown
Member

Nucs commented Apr 12, 2026

#597 covers exactly how NumPy handles np.save/load which is not what we are currently doing in NumSharp.
This merge request is unfortunately not aligned with NumPy.
In the near future we will be refactoring the np.load/save to 100% parity with NumPy.

Thank you for contributing, closing as it is no longer relevant and will be differently fixed.

@Nucs Nucs closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants