Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can stdlib be used to unzip npz format? #751

jalvesz started this conversation in General
Discussion options

Hi,
I saw that stdlib has a facility function to open npy files, I was wondering if this could be extended to treat npz? https://numpy.org/doc/stable/reference/generated/numpy.savez.html

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

I'll have a look into it

You must be logged in to vote
0 replies
Comment options

jalvesz
Jan 25, 2024
Maintainer Author

Hi, I wanted to share a thought and ask for opinions. I'm using the npy reader and for my application I can run the process on multiple processes with MPI. I need all processes to retrieve the same data from my list of .npy at the very beginning. So for testing I added the shared option to the open statement as I'm using intel compilers, it works perfect.

So, given that each compiler has different extensions for shared IO, I was wondering if it would be worth adding this features as an optional argument to load_npy which would then be translated to the appropriate option compiler-wise. Any thoughts?

Thanks

You must be logged in to vote
1 reply
Comment options

Yes, if it is feasible that load_npy sets the right options for different compilers (not sure) then I agree that this could be a useful feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /