NPZ.jl icon indicating copy to clipboard operation
NPZ.jl copied to clipboard

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

Open Lattay opened this issue 1 year ago • 3 comments

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 avatar Nov 08 '24 16:11 Lattay

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

Lattay avatar Nov 08 '24 16:11 Lattay

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.

Lattay avatar Nov 11 '24 14:11 Lattay

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

jlapeyre avatar Dec 12 '24 21:12 jlapeyre