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
-
3
1
from bioimageio .spec import load_description
4
2
from bioimageio .spec .model import v0_5
5
3
6
4
7
5
# TODO: don't just test with unet2d_nuclei_broad_model
8
- @pytest .mark .skip ("get_io_sample_block_metas needs improvements" )
9
6
def test_get_block_transform (unet2d_nuclei_broad_model : str ):
10
7
from bioimageio .core .axis import AxisId
11
8
from bioimageio .core .common import MemberId
@@ -25,18 +22,21 @@ def test_get_block_transform(unet2d_nuclei_broad_model: str):
25
22
if isinstance (a .size , v0_5 .ParameterizedSize )
26
23
}
27
24
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
+
28
34
_ , blocks = get_io_sample_block_metas (
29
35
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 ,
38
37
ns = ns ,
39
38
)
39
+
40
40
for ipt_block , out_block in blocks :
41
41
trf_block = ipt_block .get_transformed (block_transform )
42
42
assert out_block == trf_block
You can’t perform that action at this time.
0 commit comments