Skip to content

Commit f0e0c97

Browse files
Promote tifffile to full dependency
1 parent 79c4d9f commit f0e0c97

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

bioimageio/core/build_spec/build_model.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import imageio
99
import numpy as np
1010
import requests
11+
import tifffile
1112

1213
import bioimageio.spec as spec
1314
import bioimageio.spec.model as model_spec
@@ -21,12 +22,6 @@
2122
except ImportError:
2223
from typing_extensions import get_args # type: ignore
2324

24-
# need tifffile for writing the deepimagej config
25-
# we probably always have this, but wrap into an ImportGuard just in case
26-
try:
27-
import tifffile
28-
except ImportError:
29-
tifffile = None
3025

3126
#
3227
# utility functions to build the spec from python
@@ -419,7 +414,6 @@ def get_size(fname, axes):
419414

420415
def _write_sample_data(input_paths, output_paths, input_axes, output_axes, pixel_sizes, export_folder: Path):
421416
def write_im(path, im, axes, pixel_size=None):
422-
assert tifffile is not None, "need tifffile for writing deepimagej config"
423417
assert len(axes) == im.ndim, f"{len(axes), {im.ndim}}"
424418
assert im.ndim in (4, 5), f"{im.ndim}"
425419

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"ruamel.yaml",
3333
"tqdm",
3434
"xarray",
35-
"tifffile<=2022.4.8", # fixes Syntax error; see https://github.com/bioimage-io/core-bioimage-io-python/pull/259
35+
"tifffile"
3636
],
3737
include_package_data=True,
3838
extras_require={

0 commit comments

Comments
 (0)