GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BUG: Allow reading non-npy files in npz and add test by charris · Pull Request #29412 · numpy/numpy

Conversation

@charris

@charris charris commented Jul 22, 2025

Copy link
Copy Markdown
Member

Backport of #29313.

Retrieving a from an npz file will first check for a file a, then for a.npy; this checks both.

Fixes #29282

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@DWesl @seberg @charris
TST: Add test for non-npy files in npz and different names (numpy#29313)
92a6d59
* TST: Add test for non-npy files in npz and different names

Retrieving `a` from an npz file will first check for a file `a`, then for `a.npy`; this checks both.

* BUG: Argument to read should be int not str

Old behavior is to read everything, which will happen if I pass no argument.

---------

Co-authored-by: Sebastian Berg <[email protected]>
@charris charris added this to the 2.3.2 release milestone Jul 22, 2025
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jul 22, 2025
@charris
charris changed the base branch from main to maintenance/2.3.x July 22, 2025 15:22
@charris
charris merged commit 6dfdc37 into numpy:maintenance/2.3.x Jul 22, 2025
@charris
charris deleted the backport-29313 branch July 22, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Milestone

2.3.2 release

Development

Successfully merging this pull request may close these issues.

I think key is a string and read() expects an int. Should this be just

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@charris @DWesl
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.