Skip to content

Commit

Permalink
Merge pull request #559 from bioimage-io/local_n
Browse files Browse the repository at this point in the history
minor improvements
  • Loading branch information
FynnBe authored Mar 14, 2024
2 parents e086210 + 05fcb23 commit 3b60948
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions bioimageio/spec/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
from ._internal.io import Sha256 as Sha256
from ._internal.io import YamlValue as YamlValue
from ._internal.io_basics import FileName as FileName
from ._internal.io_utils import (
identify_bioimageio_yaml_file_name as identify_bioimageio_yaml_file_name,
)
from ._internal.root_url import RootHttpUrl as RootHttpUrl
from ._internal.types import FileSource as FileSource
from ._internal.types import PermissiveFileSource as PermissiveFileSource
Expand Down
6 changes: 2 additions & 4 deletions bioimageio/spec/model/v0_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,10 @@ def _validate(cls, value: str):


class ParameterizedSize(Node):
"""Describes a range of valid tensor axis sizes as `size = min + n*step`.
`n` in this equation is the same for all axis parameterized in this manner across the whole model.
"""
"""Describes a range of valid tensor axis sizes as `size = min + n*step`."""

N: ClassVar[Type[int]] = int
"""integer to parameterize all axes with a `ParameterizedSize`"""
"""integer to parameterize this axis"""

min: Annotated[int, Gt(0)]
step: Annotated[int, Gt(0)]
Expand Down
3 changes: 3 additions & 0 deletions bioimageio/spec/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from ._internal.io import download as download
from ._internal.io_utils import (
identify_bioimageio_yaml_file_name as identify_bioimageio_yaml_file_name,
)
from ._internal.io_utils import load_array as load_array
from ._internal.io_utils import save_array as save_array

0 comments on commit 3b60948

Please sign in to comment.