From 63691720b7d63eb2ae983881f8f4a6c10f095f3a Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Fri, 16 Sep 2022 17:39:18 +0200 Subject: [PATCH] fix: Update Hex40 definition (#146) * Update Hex40 definition While trying to get the `bioformats2raw.layout` specification (https://github.com/ome/ngff/pull/112) this raised its head again. Following the discussion in https://github.com/ome/ome-model/pull/158 changing the size checks to `40` passes. fix: https://github.com/ome/bioformats/issues/3810 fix: https://github.com/ome/napari-ome-zarr/pull/47#issuecomment-1248066299 * Bump to min_length=40 --- src/ome_autogen.py | 4 ++-- testing/data/fake-plate-rows-2.ome.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 testing/data/fake-plate-rows-2.ome.xml diff --git a/src/ome_autogen.py b/src/ome_autogen.py index beef7a62..d7c327e6 100644 --- a/src/ome_autogen.py +++ b/src/ome_autogen.py @@ -985,8 +985,8 @@ def _simple_class(self) -> List[str]: if self.type.local_name == "Hex40": return [ "class Hex40(ConstrainedStr):", - " min_length = 20", - " max_length = 20", + " min_length = 40", + " max_length = 40", ] lines = [] diff --git a/testing/data/fake-plate-rows-2.ome.xml b/testing/data/fake-plate-rows-2.ome.xml new file mode 100644 index 00000000..4945aa05 --- /dev/null +++ b/testing/data/fake-plate-rows-2.ome.xml @@ -0,0 +1 @@ +ExperimentPlate 0 of 1PlateAcquisition 0 of 1Image Description 01234567890ABCDEF1234567890ABCDEF12345678Image Description 11234567890ABCDEF1234567890ABCDEF12345678 \ No newline at end of file