diff --git a/bioimageio/core/VERSION b/bioimageio/core/VERSION index a6275ed8..daee51e9 100644 --- a/bioimageio/core/VERSION +++ b/bioimageio/core/VERSION @@ -1,3 +1,3 @@ { - "version": "0.5.4" + "version": "0.5.4post1" } diff --git a/bioimageio/core/build_spec/build_model.py b/bioimageio/core/build_spec/build_model.py index 9063eed4..7bdc5e71 100644 --- a/bioimageio/core/build_spec/build_model.py +++ b/bioimageio/core/build_spec/build_model.py @@ -8,6 +8,7 @@ import imageio import numpy as np import requests +import tifffile import bioimageio.spec as spec import bioimageio.spec.model as model_spec @@ -21,12 +22,6 @@ except ImportError: from typing_extensions import get_args # type: ignore -# need tifffile for writing the deepimagej config -# we probably always have this, but wrap into an ImportGuard just in case -try: - import tifffile -except ImportError: - tifffile = None # # utility functions to build the spec from python @@ -419,7 +414,6 @@ def get_size(fname, axes): def _write_sample_data(input_paths, output_paths, input_axes, output_axes, pixel_sizes, export_folder: Path): def write_im(path, im, axes, pixel_size=None): - assert tifffile is not None, "need tifffile for writing deepimagej config" assert len(axes) == im.ndim, f"{len(axes), {im.ndim}}" assert im.ndim in (4, 5), f"{im.ndim}" diff --git a/setup.py b/setup.py index 4eb63081..9a211642 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ "ruamel.yaml", "tqdm", "xarray", - "tifffile<=2022.4.8", # fixes Syntax error; see https://github.com/bioimage-io/core-bioimage-io-python/pull/259 + "tifffile" ], include_package_data=True, extras_require={