From 99d2b454674573017478b3801e6ac6c1e2ccd4ca Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Tue, 27 Oct 2026 17:09:46 +0000 Subject: [PATCH 1/6] minor docs updates --- README.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bfb3724..d6d929d 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Conformance for validating OME-Zarr data and metadata can be tested at several l ### parse_attributes These cases exercise levels 1 and 2 validation; -whether a single Zarr attributes object containing OME-Zarr can be represented and validated. +whether a single Zarr attributes object containing OME-Zarr metadata can be represented and validated. See [cases/parse_attributes/README.md](./cases/parse_attributes/README.md) for more details. diff --git a/pyproject.toml b/pyproject.toml index 827e671..cf10ac8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "oztest" version = "0.1.0" -description = "Add your description here" +description = "Conformance test cases and tooling for OME-Zarr" readme = "README.md" authors = [{ name = "Chris Barnes", email = "chris.barnes@gerbi-gmb.de" }] requires-python = ">=3.11,<4.0" From f585bc226ac3aca8a2cb34f2ab32502dd7fdf141 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Tue, 27 Oct 2026 17:11:42 +0000 Subject: [PATCH 2/6] Add arrays to invalid well cases --- .../duplicate_images.ome.zarr/0/0/zarr.json | 32 ++++++++++++ .../duplicate_images.ome.zarr/0/zarr.json | 50 +++++++++++++++++++ .../0/0/zarr.json | 32 ++++++++++++ .../0/zarr.json | 50 +++++++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json diff --git a/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} From 0c2eb127dd2a5b707644e449aef87f9c4af666ad Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Tue, 27 Oct 2026 17:15:23 +0000 Subject: [PATCH 3/6] Add containing plate where necessary Most of the well cases do not reference acquisitions, and so don't need to be in a plate hierarchy. The non_integer_acquisition_id case does. --- .../{ => A/1}/0/0/zarr.json | 0 .../{ => A/1}/0/zarr.json | 0 .../A/1/zarr.json | 17 ++++++++++ .../A/zarr.json | 5 +++ .../zarr.json | 33 +++++++++++++++---- 5 files changed, 48 insertions(+), 7 deletions(-) rename cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/{ => A/1}/0/0/zarr.json (100%) rename cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/{ => A/1}/0/zarr.json (100%) create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/zarr.json diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/0/0/zarr.json similarity index 100% rename from cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/0/zarr.json rename to cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/0/0/zarr.json diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/0/zarr.json similarity index 100% rename from cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/0/zarr.json rename to cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/0/zarr.json diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/zarr.json new file mode 100644 index 0000000..49e199f --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/1/zarr.json @@ -0,0 +1,17 @@ +{ + "attributes": { + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "acquisition": "0", + "path": "0" + } + ] + } + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/zarr.json new file mode 100644 index 0000000..a7d1b29 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/A/zarr.json @@ -0,0 +1,5 @@ +{ + "attributes": {}, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/zarr.json index 41d610b..1a27880 100644 --- a/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/zarr.json +++ b/cases/validate_zarr/v0.6/core/invalid/well/non_integer_acquisition_id.ome.zarr/zarr.json @@ -1,12 +1,31 @@ { "attributes": { - "well": { - "images": [ - { - "acquisition": "0", - "path": "0" - } - ] + "ome": { + "plate": { + "acquisitions": [ + { + "id": 0 + } + ], + "columns": [ + { + "name": "1" + } + ], + "rows": [ + { + "name": "A" + } + ], + "wells": [ + { + "columnIndex": 0, + "path": "A/1", + "rowIndex": 0 + } + ] + }, + "version": "0.6" } }, "node_type": "group", From 4690039bec8e981ae95a86d875cfbdae4a759bc4 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Tue, 27 Oct 2026 17:19:19 +0000 Subject: [PATCH 4/6] Remove duplicate test case The well minimal_acquisitions test needs to exist in a plate hierarchy, which means that the test is identical to the plate minimal_acquisitions case. --- .../0/0/zarr.json | 32 ------------ .../minimal_acquisitions.ome.zarr/0/zarr.json | 50 ------------------- .../minimal_acquisitions.ome.zarr/zarr.json | 17 ------- 3 files changed, 99 deletions(-) delete mode 100644 cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/0/zarr.json delete mode 100644 cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/zarr.json delete mode 100644 cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/zarr.json diff --git a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/0/zarr.json deleted file mode 100644 index c29b2c3..0000000 --- a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/0/zarr.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "attributes": {}, - "chunk_grid": { - "configuration": { - "chunk_shape": [ - 10, - 10 - ] - }, - "name": "regular" - }, - "chunk_key_encoding": { - "configuration": { - "separator": "/" - }, - "name": "default" - }, - "codecs": [ - { - "name": "bytes" - } - ], - "data_type": "uint8", - "fill_value": 0, - "node_type": "array", - "shape": [ - 10, - 10 - ], - "storage_transformers": [], - "zarr_format": 3 -} diff --git a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/zarr.json deleted file mode 100644 index ff02734..0000000 --- a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/0/zarr.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "attributes": { - "ome": { - "multiscales": [ - { - "coordinateSystems": [ - { - "axes": [ - { - "name": "y", - "type": "space", - "unit": "micrometer" - }, - { - "name": "x", - "type": "space", - "unit": "micrometer" - } - ], - "name": "intrinsic" - } - ], - "datasets": [ - { - "coordinateTransformations": [ - { - "input": { - "path": "0" - }, - "output": { - "name": "intrinsic" - }, - "scale": [ - 1, - 1 - ], - "type": "scale" - } - ], - "path": "0" - } - ] - } - ], - "version": "0.6" - } - }, - "node_type": "group", - "zarr_format": 3 -} diff --git a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/zarr.json deleted file mode 100644 index c2e2011..0000000 --- a/cases/validate_zarr/v0.6/core/valid/well/minimal_acquisitions.ome.zarr/zarr.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "attributes": { - "ome": { - "version": "0.6", - "well": { - "images": [ - { - "acquisition": 1, - "path": "0" - } - ] - } - } - }, - "node_type": "group", - "zarr_format": 3 -} From 95c2f3da951fae5cc1f44dcdd32dea7c061406f7 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Tue, 27 Oct 2026 17:30:17 +0000 Subject: [PATCH 5/6] Add forbidden path cases --- .../forbidden_path_1.ome.zarr/0/0/zarr.json | 32 ++++++++++++ .../forbidden_path_1.ome.zarr/0/zarr.json | 50 +++++++++++++++++++ .../well/forbidden_path_1.ome.zarr/zarr.json | 16 ++++++ .../forbidden_path_2.ome.zarr/0/0/zarr.json | 32 ++++++++++++ .../forbidden_path_2.ome.zarr/0/zarr.json | 50 +++++++++++++++++++ .../well/forbidden_path_2.ome.zarr/zarr.json | 16 ++++++ .../forbidden_path_3.ome.zarr/0/0/zarr.json | 32 ++++++++++++ .../forbidden_path_3.ome.zarr/0/zarr.json | 50 +++++++++++++++++++ .../well/forbidden_path_3.ome.zarr/zarr.json | 16 ++++++ .../forbidden_path_4.ome.zarr/0/0/zarr.json | 32 ++++++++++++ .../forbidden_path_4.ome.zarr/0/zarr.json | 50 +++++++++++++++++++ .../well/forbidden_path_4.ome.zarr/zarr.json | 16 ++++++ 12 files changed, 392 insertions(+) create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/zarr.json create mode 100644 cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/zarr.json diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/zarr.json new file mode 100644 index 0000000..dbbd70d --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_1.ome.zarr/zarr.json @@ -0,0 +1,16 @@ +{ + "attributes": { + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "path": "." + } + ] + } + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/zarr.json new file mode 100644 index 0000000..a1a8803 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_2.ome.zarr/zarr.json @@ -0,0 +1,16 @@ +{ + "attributes": { + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "path": ".." + } + ] + } + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/zarr.json new file mode 100644 index 0000000..7194a77 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_3.ome.zarr/zarr.json @@ -0,0 +1,16 @@ +{ + "attributes": { + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "path": "__something" + } + ] + } + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/0/zarr.json new file mode 100644 index 0000000..c29b2c3 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/0/zarr.json @@ -0,0 +1,32 @@ +{ + "attributes": {}, + "chunk_grid": { + "configuration": { + "chunk_shape": [ + 10, + 10 + ] + }, + "name": "regular" + }, + "chunk_key_encoding": { + "configuration": { + "separator": "/" + }, + "name": "default" + }, + "codecs": [ + { + "name": "bytes" + } + ], + "data_type": "uint8", + "fill_value": 0, + "node_type": "array", + "shape": [ + 10, + 10 + ], + "storage_transformers": [], + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/zarr.json new file mode 100644 index 0000000..ff02734 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/0/zarr.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "ome": { + "multiscales": [ + { + "coordinateSystems": [ + { + "axes": [ + { + "name": "y", + "type": "space", + "unit": "micrometer" + }, + { + "name": "x", + "type": "space", + "unit": "micrometer" + } + ], + "name": "intrinsic" + } + ], + "datasets": [ + { + "coordinateTransformations": [ + { + "input": { + "path": "0" + }, + "output": { + "name": "intrinsic" + }, + "scale": [ + 1, + 1 + ], + "type": "scale" + } + ], + "path": "0" + } + ] + } + ], + "version": "0.6" + } + }, + "node_type": "group", + "zarr_format": 3 +} diff --git a/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/zarr.json new file mode 100644 index 0000000..43c8f03 --- /dev/null +++ b/cases/validate_zarr/v0.6/core/invalid/well/forbidden_path_4.ome.zarr/zarr.json @@ -0,0 +1,16 @@ +{ + "attributes": { + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "path": "!@#$%^&*()+={}[]" + } + ] + } + } + }, + "node_type": "group", + "zarr_format": 3 +} From 2b7b43c466172b07b946353548dec0026dac3dd3 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Wed, 28 Oct 2026 17:51:32 +0000 Subject: [PATCH 6/6] Add ome wrapper --- .../well/duplicate_images.ome.zarr/zarr.json | 21 +++++++++++-------- .../well/empty_images.ome.zarr/zarr.json | 7 +++++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/zarr.json index 7749c53..83767b3 100644 --- a/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/zarr.json +++ b/cases/validate_zarr/v0.6/core/invalid/well/duplicate_images.ome.zarr/zarr.json @@ -1,14 +1,17 @@ { "attributes": { - "well": { - "images": [ - { - "path": "0" - }, - { - "path": "0" - } - ] + "ome": { + "version": "0.6", + "well": { + "images": [ + { + "path": "0" + }, + { + "path": "0" + } + ] + } } }, "node_type": "group", diff --git a/cases/validate_zarr/v0.6/core/invalid/well/empty_images.ome.zarr/zarr.json b/cases/validate_zarr/v0.6/core/invalid/well/empty_images.ome.zarr/zarr.json index b2c7bcd..10ed97a 100644 --- a/cases/validate_zarr/v0.6/core/invalid/well/empty_images.ome.zarr/zarr.json +++ b/cases/validate_zarr/v0.6/core/invalid/well/empty_images.ome.zarr/zarr.json @@ -1,7 +1,10 @@ { "attributes": { - "well": { - "images": [] + "ome": { + "version": "0.6", + "well": { + "images": [] + } } }, "node_type": "group",