Closed d-v-b closed 1 day ago
I added validation + tests to ensure that the number of multiscales.axes
matches the dimensionality of the transforms defined in multiscales.coordinateTransformations
(if present), and separate validation / tests to ensure that the axes match the number of transforms in the per-dataset coordinate transformations
i think this is ready for review!
this should resolve https://github.com/BioImageTools/ome-zarr-models-py/issues/33
I bring in a lot of the tests and validation logic from pydantic-zarr. A few notable changes I add here:
.build
methods toVectorScale
andVectorTranslation
that allow you to create the respective transform without explicitly passing in thetype
as a (redundant) keyword argument_build_transforms
function that createstuple[VectorScale] | tuple[VectorScale, VectorTranslation]
, this is a convenience function for makingcoordinateTransformations
metadata.