Skip to content

Commit

Permalink
Move model namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Nov 21, 2024
1 parent ee5cf52 commit e0784a9
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 7 deletions.
12 changes: 12 additions & 0 deletions src/ome_zarr_models/v04/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ome_zarr_models.v04.axes import Axis
from ome_zarr_models.v04.coordinate_transformations import (
PathScale,
PathTranslation,
VectorScale,
VectorTranslation,
)
from ome_zarr_models.v04.multiscales import (
Dataset,
Multiscale,
MultiscaleGroupAttrs,
)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import warnings
from typing import Annotated, Counter, Hashable, Iterable, Literal
from pydantic import AfterValidator, Field, model_validator
from ome_zarr_models.v04.models.multiscales import MultiscaleGroupAttrs
from ome_zarr_models.v04.multiscales import MultiscaleGroupAttrs
from ome_zarr_models.base import Base

ConInt = Annotated[int, Field(strict=True, ge=0, le=255)]
Expand Down
3 changes: 0 additions & 3 deletions src/ome_zarr_models/v04/models/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any
from ome_zarr_models.base import Base
from ome_zarr_models.utils import unique_items_validator
from ome_zarr_models.v04.models.axes import Axis
from ome_zarr_models.v04.models.coordinate_transformations import (
from ome_zarr_models.v04.axes import Axis
from ome_zarr_models.v04.coordinate_transformations import (
PathScale,
PathTranslation,
VectorScale,
Expand All @@ -11,7 +11,7 @@


from pydantic import Field, field_validator
from ome_zarr_models.v04.models.omero import Omero
from ome_zarr_models.v04.omero import Omero


class Dataset(Base):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e0784a9

Please sign in to comment.