Skip to content

Commit 20545fa

Browse files
committed
reenable test_get_block_transform
1 parent 07989d3 commit 20545fa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_digest_spec.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import pytest
2-
31
from bioimageio.spec import load_description
42
from bioimageio.spec.model import v0_5
53

64

75
# TODO: don't just test with unet2d_nuclei_broad_model
8-
@pytest.mark.skip("get_io_sample_block_metas needs improvements")
96
def test_get_block_transform(unet2d_nuclei_broad_model: str):
107
from bioimageio.core.axis import AxisId
118
from bioimageio.core.common import MemberId
@@ -25,18 +22,21 @@ def test_get_block_transform(unet2d_nuclei_broad_model: str):
2522
if isinstance(a.size, v0_5.ParameterizedSize)
2623
}
2724

25+
input_sample_shape = {
26+
MemberId("raw"): {
27+
AxisId("batch"): 3,
28+
AxisId("channel"): 1,
29+
AxisId("x"): 4000,
30+
AxisId("y"): 3000,
31+
}
32+
}
33+
2834
_, blocks = get_io_sample_block_metas(
2935
model,
30-
input_sample_shape={
31-
MemberId("raw"): {
32-
AxisId("batch"): 3,
33-
AxisId("channel"): 1,
34-
AxisId("x"): 4000,
35-
AxisId("y"): 3000,
36-
}
37-
},
36+
input_sample_shape=input_sample_shape,
3837
ns=ns,
3938
)
39+
4040
for ipt_block, out_block in blocks:
4141
trf_block = ipt_block.get_transformed(block_transform)
4242
assert out_block == trf_block

0 commit comments

Comments
 (0)