Skip to content

Commit d7dccb2

Browse files
Merge pull request #136 from bioimage-io/check_run_mode
Throw exception if `run_mode` is specified
2 parents 8ce6b9f + 9a405c0 commit d7dccb2

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)