File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3636 from collections .abc import Sequence
3737
3838 from ome_zarr_models .v05 .multiscales import Multiscale as MultiscaleV05
39+ from ome_zarr_models ._v06 .multiscales import Multiscale as MultiscaleV06
3940
4041
4142__all__ = ["Dataset" , "Multiscale" ]
@@ -57,15 +58,20 @@ class Multiscale(BaseAttrs):
5758 type : JsonValue = None
5859 version : Literal ["0.4" ] | None = None
5960
60- def to_version (self , version : Literal ["0.5" ]) -> MultiscaleV05 :
61+ def to_version (
62+ self , version : Literal ["0.5" , "0.6" ], ** kwargs : Any
63+ ) -> MultiscaleV05 | MultiscaleV06 :
6164 """
6265 Convert this Multiscale metadata to the specified version.
6366
6467 Currently supports conversions:
6568 - from 0.4 to 0.5
69+ - from 0.4 to 0.6
6670 """
6771 if version == "0.5" :
6872 return self ._to_v05 ()
73+ elif version == "0.6" :
74+ return self ._to_v05 ()._to_v06 (** kwargs )
6975 else :
7076 raise ValueError (f"Unsupported version conversion: 0.4 -> { version } " )
7177
You can’t perform that action at this time.
0 commit comments