Skip to content

Commit 9a405c0

Browse files
committed
throw NotImplementedError if run_mode is specified
1 parent f09c88f commit 9a405c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bioimageio/core/prediction_pipeline/_prediction_pipeline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class _PredictionPipelineImpl(PredictionPipeline):
6363
def __init__(
6464
self, *, name: str, bioimageio_model: Model, processing: CombinedProcessing, model: ModelAdapter
6565
) -> None:
66+
if bioimageio_model.run_mode:
67+
raise NotImplementedError(f"Not yet implemented inference for run mode '{bioimageio_model.run_mode.name}'")
68+
6669
self._name = name
6770
self._input_specs = bioimageio_model.inputs
6871
self._output_specs = bioimageio_model.outputs

0 commit comments

Comments
 (0)