Skip to content

Commit

Permalink
chore: Migrate fixtures to zarr-python v3 (#251)
Browse files Browse the repository at this point in the history
* chore: Migrate fixtures to zarr-python v3

* Format existing fixtures

* update snapshots

* Upate fixtures
  • Loading branch information
manzt authored Feb 25, 2025
1 parent b903560 commit e715608
Show file tree
Hide file tree
Showing 121 changed files with 1,915 additions and 331 deletions.
Binary file modified fixtures/v3/data.zarr/1d.chunked.compressed.sharded.i2/c/0
Binary file not shown.
Binary file modified fixtures/v3/data.zarr/1d.chunked.compressed.sharded.i2/c/1
Binary file not shown.
62 changes: 61 additions & 1 deletion fixtures/v3/data.zarr/1d.chunked.compressed.sharded.i2/zarr.json
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
{"shape": [4], "data_type": "int16", "chunk_grid": {"configuration": {"chunk_shape": [2]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": 0, "codecs": [{"configuration": {"chunk_shape": [1], "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"level": 5}, "name": "gzip"}], "index_codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"name": "crc32c"}], "index_location": "end"}, "name": "sharding_indexed"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
4
],
"data_type": "int16",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
2
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": 0,
"codecs": [
{
"name": "sharding_indexed",
"configuration": {
"chunk_shape": [
1
],
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "gzip",
"configuration": {
"level": 5
}
}
],
"index_codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "crc32c"
}
],
"index_location": "end"
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
{"shape": [4], "data_type": "int16", "chunk_grid": {"configuration": {"chunk_shape": [2]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": 0, "codecs": [{"configuration": {"chunk_shape": [1], "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"level": 5}, "name": "gzip"}], "index_codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"name": "crc32c"}], "index_location": "end"}, "name": "sharding_indexed"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
4
],
"data_type": "int16",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
2
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": 0,
"codecs": [
{
"name": "sharding_indexed",
"configuration": {
"chunk_shape": [
1
],
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "gzip",
"configuration": {
"level": 5
}
}
],
"index_codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "crc32c"
}
],
"index_location": "end"
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
Binary file modified fixtures/v3/data.zarr/1d.chunked.i2/c/0
Binary file not shown.
Binary file modified fixtures/v3/data.zarr/1d.chunked.i2/c/1
Binary file not shown.
2 changes: 1 addition & 1 deletion fixtures/v3/data.zarr/1d.chunked.i2/zarr.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"shape": [4], "data_type": "int16", "chunk_grid": {"configuration": {"chunk_shape": [2]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": 0, "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"typesize": 4, "cname": "zstd", "clevel": 5, "shuffle": "noshuffle", "blocksize": 0}, "name": "blosc"}], "attributes": {}, "zarr_format": 3, "node_type": "array", "dimension_names": null}
{"shape": [4], "data_type": "int16", "chunk_grid": {"name": "regular", "configuration": {"chunk_shape": [2]}}, "chunk_key_encoding": {"name": "default", "configuration": {"separator": "/"}}, "fill_value": 0, "codecs": [{"name": "bytes", "configuration": {"endian": "little"}}, {"name": "blosc", "configuration": {"typesize": 4, "cname": "zstd", "clevel": 5, "shuffle": "noshuffle", "blocksize": 0}}], "attributes": {}, "zarr_format": 3, "node_type": "array", "storage_transformers": [], "dimension_names": null}
Binary file modified fixtures/v3/data.zarr/1d.chunked.ragged.i2/c/0
Binary file not shown.
Binary file modified fixtures/v3/data.zarr/1d.chunked.ragged.i2/c/1
Binary file not shown.
Binary file modified fixtures/v3/data.zarr/1d.chunked.ragged.i2/c/2
Binary file not shown.
44 changes: 43 additions & 1 deletion fixtures/v3/data.zarr/1d.chunked.ragged.i2/zarr.json
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
{"shape": [5], "data_type": "int16", "chunk_grid": {"configuration": {"chunk_shape": [2]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": 0, "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"typesize": 4, "cname": "zstd", "clevel": 5, "shuffle": "noshuffle", "blocksize": 0}, "name": "blosc"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
5
],
"data_type": "int16",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
2
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": 0,
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "blosc",
"configuration": {
"typesize": 4,
"cname": "zstd",
"clevel": 5,
"shuffle": "noshuffle",
"blocksize": 0
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
44 changes: 43 additions & 1 deletion fixtures/v3/data.zarr/1d.contiguous.b1/zarr.json
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
{"shape": [4], "data_type": "bool", "chunk_grid": {"configuration": {"chunk_shape": [4]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": false, "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"typesize": 4, "cname": "zstd", "clevel": 5, "shuffle": "noshuffle", "blocksize": 0}, "name": "blosc"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
4
],
"data_type": "bool",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
4
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": false,
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "blosc",
"configuration": {
"typesize": 4,
"cname": "zstd",
"clevel": 5,
"shuffle": "noshuffle",
"blocksize": 0
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
Binary file modified fixtures/v3/data.zarr/1d.contiguous.blosc.i2/c/0
Binary file not shown.
44 changes: 43 additions & 1 deletion fixtures/v3/data.zarr/1d.contiguous.blosc.i2/zarr.json
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
{"shape": [4], "data_type": "int16", "chunk_grid": {"configuration": {"chunk_shape": [4]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": 0, "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"typesize": 4, "cname": "zstd", "clevel": 5, "shuffle": "noshuffle", "blocksize": 0}, "name": "blosc"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
4
],
"data_type": "int16",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
4
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": 0,
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "blosc",
"configuration": {
"typesize": 4,
"cname": "zstd",
"clevel": 5,
"shuffle": "noshuffle",
"blocksize": 0
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
Binary file modified fixtures/v3/data.zarr/1d.contiguous.compressed.sharded.b1/c/0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
{"shape": [4], "data_type": "bool", "chunk_grid": {"configuration": {"chunk_shape": [4]}, "name": "regular"}, "chunk_key_encoding": {"configuration": {"separator": "/"}, "name": "default"}, "fill_value": false, "codecs": [{"configuration": {"chunk_shape": [4], "codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"configuration": {"level": 5}, "name": "gzip"}], "index_codecs": [{"configuration": {"endian": "little"}, "name": "bytes"}, {"name": "crc32c"}], "index_location": "end"}, "name": "sharding_indexed"}], "attributes": {}, "zarr_format": 3, "node_type": "array"}
{
"shape": [
4
],
"data_type": "bool",
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
4
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"fill_value": false,
"codecs": [
{
"name": "sharding_indexed",
"configuration": {
"chunk_shape": [
4
],
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "gzip",
"configuration": {
"level": 5
}
}
],
"index_codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
},
{
"name": "crc32c"
}
],
"index_location": "end"
}
}
],
"attributes": {},
"zarr_format": 3,
"node_type": "array",
"storage_transformers": []
}
Binary file modified fixtures/v3/data.zarr/1d.contiguous.compressed.sharded.f4/c/0
Binary file not shown.
Loading

0 comments on commit e715608

Please # to comment.