Skip to content

Commit f155c9d

Browse files
committed
adapt test to multi tensor model
1 parent 37acc79 commit f155c9d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bioimageio/core/block_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def split_multiple_shapes_into_blocks(
355355
halo=halo.get(t, {}),
356356
stride=strides.get(t),
357357
)
358-
assert n_blocks[t] > 0
358+
assert n_blocks[t] > 0, n_blocks
359359

360360
assert len(blocks) > 0, blocks
361361
assert len(n_blocks) > 0, n_blocks

tests/test_prediction.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,17 @@ def test_predict_with_blocking(with_procs: bool, prep: Prep):
9191

9292

9393
def test_predict_with_fixed_blocking(prep: Prep):
94-
block_along = list(prep.input_sample.members)[0]
94+
block_along = list(prep.input_sample.members)
9595
input_block_shape: Mapping[MemberId, Mapping[AxisId, int]] = {
96-
block_along: {
96+
ba: {
9797
"x": min( # pyright: ignore[reportAssignmentType]
98-
32, prep.input_sample.members[block_along].tagged_shape[AxisId("x")]
98+
128, prep.input_sample.members[ba].tagged_shape[AxisId("x")]
9999
),
100100
AxisId("y"): min(
101-
32, prep.input_sample.members[block_along].tagged_shape[AxisId("y")]
101+
128, prep.input_sample.members[ba].tagged_shape[AxisId("y")]
102102
),
103103
}
104+
for ba in block_along
104105
}
105106
try:
106107
out = predict(

0 commit comments

Comments
 (0)