Skip to content

Commit 878c646

Browse files
authored
Merge pull request #424 from bioimage-io/collections_abc_fix
Collections abc fix
2 parents c59a1f8 + 703d33d commit 878c646

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

.github/workflows/build.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ jobs:
7777
cache-environment: true
7878
environment-file: dev/env-py38.yaml
7979
post-cleanup: 'all'
80-
- name: additional setup
80+
- name: additional setup spec
8181
run: |
8282
conda remove --yes --force bioimageio.spec || true # allow failure for cached env
8383
pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
84-
pip install --no-deps -e .
84+
- name: additional setup core
85+
run: pip install --no-deps -e .
8586
- name: pytest-spec-main
8687
run: pytest --disable-pytest-warnings
8788

bioimageio/core/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "0.6.9"
2+
"version": "0.6.10"
33
}

bioimageio/core/prediction.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def predict_many(
161161
f"Missing `{{member_id}}` in save_output_path={save_output_path}"
162162
)
163163

164-
if not isinstance(inputs, collections.Mapping) and "{sample_id}" not in str(
164+
if not isinstance(inputs, collections.abc.Mapping) and "{sample_id}" not in str(
165165
save_output_path
166166
):
167167
raise ValueError(
@@ -179,7 +179,7 @@ def predict_many(
179179

180180
pp = create_prediction_pipeline(model)
181181

182-
if not isinstance(inputs, collections.Mapping):
182+
if not isinstance(inputs, collections.abc.Mapping):
183183
sample_id = str(sample_id)
184184
if "{i}" not in sample_id and "{i:" not in sample_id:
185185
sample_id += "{i:03}"

dev/env-py38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- bioimageio.spec>=0.5.3.2
7+
- bioimageio.spec>=0.5.3.3
88
- black
99
- crick # uncommented
1010
- filelock

dev/env-tf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- bioimageio.spec>=0.5.3.2
7+
- bioimageio.spec>=0.5.3.3
88
- black
99
# - crick # currently requires python<=3.9
1010
- filelock

dev/env-wo-python.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- bioimageio.spec>=0.5.3.2
7+
- bioimageio.spec>=0.5.3.3
88
- black
99
# - crick # currently requires python<=3.9
1010
- filelock

dev/env.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: core
22
channels:
33
- conda-forge
44
dependencies:
5-
- bioimageio.spec>=0.5.3.2
5+
- bioimageio.spec>=0.5.3.3
66
- black
77
# - crick # currently requires python<=3.9
88
- filelock

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
packages=find_namespace_packages(exclude=["tests"]),
3131
install_requires=[
32-
"bioimageio.spec ==0.5.3.2",
32+
"bioimageio.spec ==0.5.3.3",
3333
"imageio>=2.10",
3434
"loguru",
3535
"numpy",

0 commit comments

Comments
 (0)