fhs / NPZ.jl

A Julia package that provides support for reading and writing Numpy .npy and .npz files
Other
117 stars 16 forks source link

Support reading from an IOStream #60

Open JeffFessler opened 1 year ago

JeffFessler commented 1 year ago

Currently npzread is "hardwired" to read from a file: https://github.com/fhs/NPZ.jl/blob/838df340de225c9bc523372c07cd8efb291469ea/src/NPZ.jl#L271

It would be more flexible to expose a version of it that allows reading from an IOStream, e.g., for data loaded from a URL. It would be a simple refactoring of npzread. Would you be open to a PR for that?