Skip to content

Commit

Permalink
more tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Oct 17, 2024
1 parent 417672f commit 9fbaa53
Show file tree
Hide file tree
Showing 56 changed files with 467 additions and 29 deletions.
6 changes: 6 additions & 0 deletions file1.zarr/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
".specloc": "specifications",
"data_type": "FooFile",
"namespace": "test_core",
"object_id": "660f1c92-d141-40d2-995f-2bb46c87c017"
}
3 changes: 3 additions & 0 deletions file1.zarr/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
64 changes: 64 additions & 0 deletions file1.zarr/.zmetadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"metadata": {
".zattrs": {
"data_type": "FooFile",
"namespace": "test_core",
"object_id": "660f1c92-d141-40d2-995f-2bb46c87c017"
},
".zgroup": {
"zarr_format": 2
},
"buckets/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/.zattrs": {
"data_type": "FooBucket",
"namespace": "test_core",
"object_id": "7c5adf36-8f84-4f63-a948-75f18dade974"
},
"buckets/bucket1/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/.zattrs": {
"attr1": "I am foo1",
"attr3": 3.14,
"data_type": "Foo",
"namespace": "test_core",
"object_id": "9b3a0668-f73c-4a00-b446-38888c16e551"
},
"buckets/bucket1/foo_holder/foo1/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/my_data/.zarray": {
"chunks": [
5
],
"compressor": {
"blocksize": 0,
"clevel": 5,
"cname": "lz4",
"id": "blosc",
"shuffle": 1
},
"dtype": "<i8",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
5
],
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/my_data/.zattrs": {
"attr2": 17,
"zarr_dtype": "int64"
},
"links/.zgroup": {
"zarr_format": 2
}
},
"zarr_consolidated_format": 1
}
3 changes: 3 additions & 0 deletions file1.zarr/buckets/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
5 changes: 5 additions & 0 deletions file1.zarr/buckets/bucket1/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"data_type": "FooBucket",
"namespace": "test_core",
"object_id": "7c5adf36-8f84-4f63-a948-75f18dade974"
}
3 changes: 3 additions & 0 deletions file1.zarr/buckets/bucket1/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/buckets/bucket1/foo_holder/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
7 changes: 7 additions & 0 deletions file1.zarr/buckets/bucket1/foo_holder/foo1/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"attr1": "I am foo1",
"attr3": 3.14,
"data_type": "Foo",
"namespace": "test_core",
"object_id": "9b3a0668-f73c-4a00-b446-38888c16e551"
}
3 changes: 3 additions & 0 deletions file1.zarr/buckets/bucket1/foo_holder/foo1/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
20 changes: 20 additions & 0 deletions file1.zarr/buckets/bucket1/foo_holder/foo1/my_data/.zarray
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"chunks": [
5
],
"compressor": {
"blocksize": 0,
"clevel": 5,
"cname": "lz4",
"id": "blosc",
"shuffle": 1
},
"dtype": "<i8",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
5
],
"zarr_format": 2
}
4 changes: 4 additions & 0 deletions file1.zarr/buckets/bucket1/foo_holder/foo1/my_data/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"attr2": 17,
"zarr_dtype": "int64"
}
Binary file not shown.
3 changes: 3 additions & 0 deletions file1.zarr/links/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/specifications/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/specifications/test_core/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/specifications/test_core/0.1.0/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
30 changes: 30 additions & 0 deletions file1.zarr/specifications/test_core/0.1.0/namespace/.zarray
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"chunks": [
1
],
"compressor": null,
"dtype": "|O",
"fill_value": 0,
"filters": [
{
"allow_nan": true,
"check_circular": true,
"encoding": "utf-8",
"ensure_ascii": true,
"id": "json2",
"indent": null,
"separators": [
",",
":"
],
"skipkeys": false,
"sort_keys": true,
"strict": true
}
],
"order": "C",
"shape": [
1
],
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/specifications/test_core/0.1.0/namespace/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_dtype": "scalar"
}
1 change: 1 addition & 0 deletions file1.zarr/specifications/test_core/0.1.0/namespace/0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["{\"namespaces\":[{\"doc\":\"a test namespace\",\"schema\":[{\"source\":\"test\"}],\"name\":\"test_core\",\"version\":\"0.1.0\"}]}","|O",[1]]
30 changes: 30 additions & 0 deletions file1.zarr/specifications/test_core/0.1.0/test/.zarray
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"chunks": [
1
],
"compressor": null,
"dtype": "|O",
"fill_value": 0,
"filters": [
{
"allow_nan": true,
"check_circular": true,
"encoding": "utf-8",
"ensure_ascii": true,
"id": "json2",
"indent": null,
"separators": [
",",
":"
],
"skipkeys": false,
"sort_keys": true,
"strict": true
}
],
"order": "C",
"shape": [
1
],
"zarr_format": 2
}
3 changes: 3 additions & 0 deletions file1.zarr/specifications/test_core/0.1.0/test/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_dtype": "scalar"
}
1 change: 1 addition & 0 deletions file1.zarr/specifications/test_core/0.1.0/test/0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["{\"groups\":[{\"datasets\":[{\"dtype\":\"int\",\"doc\":\"an example dataset\",\"name\":\"my_data\",\"attributes\":[{\"doc\":\"an example integer attribute\",\"name\":\"attr2\",\"dtype\":\"int\"}]}],\"doc\":\"A test group specification with a data type\",\"data_type_def\":\"Foo\",\"attributes\":[{\"doc\":\"an example string attribute\",\"name\":\"attr1\",\"dtype\":\"text\"},{\"doc\":\"an example float attribute\",\"name\":\"attr3\",\"dtype\":\"float\"}]},{\"groups\":[{\"groups\":[{\"doc\":\"the Foos in this bucket\",\"quantity\":\"*\",\"data_type_inc\":\"Foo\"}],\"doc\":\"A subgroup for Foos\",\"name\":\"foo_holder\"}],\"doc\":\"A test group specification for a data type containing data type\",\"data_type_def\":\"FooBucket\"},{\"groups\":[{\"groups\":[{\"doc\":\"One or more FooBuckets\",\"quantity\":\"*\",\"data_type_inc\":\"FooBucket\"}],\"doc\":\"Holds the FooBuckets\",\"name\":\"buckets\"},{\"links\":[{\"doc\":\"Foo link\",\"name\":\"foo_link\",\"target_type\":\"Foo\",\"quantity\":\"?\"}],\"doc\":\"Foo link group\",\"name\":\"links\"}],\"datasets\":[{\"dtype\":\"int\",\"doc\":\"Foo data\",\"name\":\"foofile_data\",\"quantity\":\"?\"}],\"doc\":\"A file of Foos contained in FooBuckets\",\"data_type_def\":\"FooFile\",\"attributes\":[{\"doc\":\"Foo ref attr\",\"name\":\"foo_ref_attr\",\"required\":false,\"dtype\":{\"target_type\":\"Foo\",\"reftype\":\"object\"}}]}]}","|O",[1]]
22 changes: 22 additions & 0 deletions file2.zarr/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
".specloc": "specifications",
"data_type": "FooFile",
"foo_ref_attr": {
"value": {
"object_id": "2a36d892-ab46-4b0c-bd6b-31ce6533d071",
"path": "/buckets/bucket2/foo_holder/foo2",
"source": "file2.zarr",
"source_object_id": "660f1c92-d141-40d2-995f-2bb46c87c017"
},
"zarr_dtype": "object"
},
"namespace": "test_core",
"object_id": "660f1c92-d141-40d2-995f-2bb46c87c017",
"zarr_link": [
{
"name": "foofile_data",
"path": "/buckets/bucket1/foo_holder/foo1/my_data",
"source": "file2.zarr"
}
]
}
3 changes: 3 additions & 0 deletions file2.zarr/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
117 changes: 117 additions & 0 deletions file2.zarr/.zmetadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"metadata": {
".zattrs": {
"data_type": "FooFile",
"foo_ref_attr": {
"value": {
"object_id": "2a36d892-ab46-4b0c-bd6b-31ce6533d071",
"path": "/buckets/bucket2/foo_holder/foo2",
"source": "file2.zarr",
"source_object_id": "660f1c92-d141-40d2-995f-2bb46c87c017"
},
"zarr_dtype": "object"
},
"namespace": "test_core",
"object_id": "660f1c92-d141-40d2-995f-2bb46c87c017",
"zarr_link": [
{
"name": "foofile_data",
"path": "/buckets/bucket1/foo_holder/foo1/my_data",
"source": "file2.zarr"
}
]
},
".zgroup": {
"zarr_format": 2
},
"buckets/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/.zattrs": {
"data_type": "FooBucket",
"namespace": "test_core",
"object_id": "7c5adf36-8f84-4f63-a948-75f18dade974"
},
"buckets/bucket1/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/.zattrs": {
"attr1": "I am foo1",
"attr3": 3.14,
"data_type": "Foo",
"namespace": "test_core",
"object_id": "9b3a0668-f73c-4a00-b446-38888c16e551"
},
"buckets/bucket1/foo_holder/foo1/.zgroup": {
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/my_data/.zarray": {
"chunks": [
5
],
"compressor": {
"blocksize": 0,
"clevel": 5,
"cname": "lz4",
"id": "blosc",
"shuffle": 1
},
"dtype": "<i8",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
5
],
"zarr_format": 2
},
"buckets/bucket1/foo_holder/foo1/my_data/.zattrs": {
"attr2": 17,
"zarr_dtype": "int64"
},
"buckets/bucket2/.zattrs": {
"data_type": "FooBucket",
"namespace": "test_core",
"object_id": "e60cc181-8b03-43d7-9c63-96a7c2b672e6"
},
"buckets/bucket2/.zgroup": {
"zarr_format": 2
},
"buckets/bucket2/foo_holder/.zgroup": {
"zarr_format": 2
},
"buckets/bucket2/foo_holder/foo2/.zattrs": {
"attr1": "I am foo2",
"attr3": 3.14,
"data_type": "Foo",
"namespace": "test_core",
"object_id": "2a36d892-ab46-4b0c-bd6b-31ce6533d071",
"zarr_link": [
{
"name": "my_data",
"path": "/buckets/bucket1/foo_holder/foo1/my_data",
"source": "file2.zarr"
}
]
},
"buckets/bucket2/foo_holder/foo2/.zgroup": {
"zarr_format": 2
},
"links/.zattrs": {
"zarr_link": [
{
"name": "foo_link",
"path": "/buckets/bucket2/foo_holder/foo2",
"source": "file2.zarr"
}
]
},
"links/.zgroup": {
"zarr_format": 2
}
},
"zarr_consolidated_format": 1
}
3 changes: 3 additions & 0 deletions file2.zarr/buckets/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
Loading

0 comments on commit 9fbaa53

Please sign in to comment.