keller-mark / pizzarr

Slice into Zarr arrays in R 🍕
https://keller-mark.github.io/pizzarr/
MIT License
25 stars 2 forks source link

More tests for compatibility with zarr-python implementation #18

Closed keller-mark closed 2 weeks ago

keller-mark commented 10 months ago
dblodgett-usgs commented 1 month ago

I just did:

library(pizzarr)

dir <- "./tests/testthat/test_data/write_test.zarr"

z <- DirectoryStore$new(dir)

a <- volcano

za <- zarr_create(dim(volcano), store = z, overwrite = TRUE)

za$set_item("...", a)

With that file, I can do:

import zarr

zarr.open_array("write_test.zarr")

# <zarr.core.Array (87, 61) float64>

This test identified the bug with unboxing json that's fixed in #85

What other aspects of pizzarr output should we be testing you think?

dblodgett-usgs commented 2 weeks ago

Think we can call this done @keller-mark ?

keller-mark commented 2 weeks ago

Yes that sounds good