github-actions
released this
23 Aug 01:43
·
112 commits
to main
since this release
Patch Changes
-
feat: Support
VLenUTF8
codec in v2 and introduce a strided JS "object" Array. (#96)import zarr import numcodecs zarr.create_dataset( "data.zarr", data=np.array( [[["a", "aa"], ["aaa", "aaaa"]], [["b", "bb"], ["bbb", "bbbb"]]], dtype=object ), dtype="|O", object_codec=numcodecs.VLenUTF8(), chunks=(1, 1, 2), )
import * as zarr from "zarrita"; let store = zarr.FetchStore("http://localhost:8080/data.zarr"); let arr = await zarr.open.v2(store, { kind: "array" }); let result = zarr.get(arr); // { // data: ["a", "aa", "aaa", "aaaa", "b", "bb", "bbb", "bbbb"], // shape: [2, 2, 2], // stride: [4, 2, 1], // }
-
Updated dependencies [
97e7df1
]:- @zarrita/[email protected]
- @zarrita/[email protected]