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

Correct example in README.md to use a Dict #26

Closed denglerchr closed 5 years ago

denglerchr commented 5 years ago

The example saving multiple variables into a single ".npz" was broken, using an Array instead of a Dict.

denglerchr commented 5 years ago

Actually one also has to give it an array instead of a range, so the working version is: npzwrite("data.npz", Dict("x" => x, "a" => collect(1:9), "n" => 42])

fhs commented 5 years ago

Yep, please update the PR.

fhs commented 5 years ago

Thanks!