File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1- import pytest
2-
31from bioimageio .spec import load_description
42from 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" )
96def 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
You can’t perform that action at this time.
0 commit comments