Skip to content

Commit 0fcac46

Browse files
committed
fix tensor spec iterations
1 parent 2035938 commit 0fcac46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bioimageio/core/prediction_pipeline/_combined_processing.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ def __init__(self, inputs: List[nodes.InputTensor], outputs: List[nodes.OutputTe
5353
self._prep = [
5454
KNOWN_PREPROCESSING[step.name](tensor_name=ipt.name, **step.kwargs)
5555
for ipt in inputs
56-
for step in ipt.preprocessing
57-
if ipt.preprocessing is not missing
56+
for step in ipt.preprocessing or []
5857
]
5958
self._post = [
6059
KNOWN_POSTPROCESSING.get(step.name)(tensor_name=out.name, **step.kwargs)
6160
for out in outputs
62-
for step in out.postprocessing
63-
if out.postprocessing is not missing
61+
for step in out.postprocessing or []
6462
]
6563

6664
# There is a difference between pre-and-postprocessing:

0 commit comments

Comments
 (0)