We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59a1f8 commit 9354bb7Copy full SHA for 9354bb7
bioimageio/core/prediction.py
@@ -161,7 +161,7 @@ def predict_many(
161
f"Missing `{{member_id}}` in save_output_path={save_output_path}"
162
)
163
164
- if not isinstance(inputs, collections.Mapping) and "{sample_id}" not in str(
+ if not isinstance(inputs, collections.abc.Mapping) and "{sample_id}" not in str(
165
save_output_path
166
):
167
raise ValueError(
@@ -179,7 +179,7 @@ def predict_many(
179
180
pp = create_prediction_pipeline(model)
181
182
- if not isinstance(inputs, collections.Mapping):
+ if not isinstance(inputs, collections.abc.Mapping):
183
sample_id = str(sample_id)
184
if "{i}" not in sample_id and "{i:" not in sample_id:
185
sample_id += "{i:03}"
0 commit comments