uncompressed save?
#1332
|
With import numpy as np
import zarr
data = np.random.rand(1_000_000)
zarr.save("out.zarr", data)one can save a numpy array with the default compressor. How do I turn it off? This zarr.save("out.zarr", data, compressor=None)only gives |
Answered by
d-v-b
Jan 25, 2023
Replies: 2 comments 2 replies
|
Hi @nschloe, it looks like Personally, I don't like this function and I recommend instead using zarr.save_array("out.zarr", data, compressor=None) |
0 replies
Answer selected by
nschloe
|
We should probably remove or refactor any routine like |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nschloe, it looks like
zarr.savedoesn't forward array creation kwargs likecompressorto the right function -- instead,zarr.saveassumes that **kwargs is a dict of arrays?Personally, I don't like this function and I recommend instead using
zarr.save_array