Skip to content

[WIP] feature proposal: make npzread/write file io variants public#65

Open
Lattay wants to merge 1 commit into
fhs:masterfrom
Lattay:doc_npz_fileio
Open

[WIP] feature proposal: make npzread/write file io variants public#65
Lattay wants to merge 1 commit into
fhs:masterfrom
Lattay:doc_npz_fileio

Conversation

@Lattay
Copy link
Copy Markdown

@Lattay Lattay commented Nov 8, 2024

Hello,

I found the npzwritearray function useful when combined with something like GZip.open, so I propose to document it to make it public.
The name seems a bit confusing relative to npzwrite, so I also propose to rename it to npzwriteto.
I also did the corresponding change for npzread.

Is this something that would be welcome upstream?

@Lattay Lattay changed the title feature proposal: make npzread/write file io variants public [WIP] feature proposal: make npzread/write file io variants public Nov 8, 2024
@Lattay Lattay changed the title [WIP] feature proposal: make npzread/write file io variants public feature proposal: make npzread/write file io variants public Nov 8, 2024
@Lattay Lattay changed the title feature proposal: make npzread/write file io variants public [WIP] feature proposal: make npzread/write file io variants public Nov 8, 2024
@Lattay
Copy link
Copy Markdown
Author

Lattay commented Nov 8, 2024

Just realized npzread is not as trivial as I thought because of the npz/npy detection.

@Lattay
Copy link
Copy Markdown
Author

Lattay commented Nov 11, 2024

Just realized npzread is not as trivial as I thought because of the npz/npy detection.

What seemed difficult was to not require seekable, but it turns out Numpy does require it, so I think it is fine.

@jlapeyre
Copy link
Copy Markdown

Me too. For example, "save"d numpy arrays returned by a REST API may be uuencoded.

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