@@ -124,8 +124,8 @@ def test_tensor_base_invalid(kwargs: Dict[str, Any]):
124124 "description" : "Input 1" ,
125125 "data" : {"type" : "float32" },
126126 "axes" : [
127- dict (type = "space" , name = "x" , size = 10 ),
128- dict (type = "space" , name = "y" , size = 11 ),
127+ dict (type = "space" , id = "x" , size = 10 ),
128+ dict (type = "space" , id = "y" , size = 11 ),
129129 dict (type = "channel" , channel_names = tuple ("abc" )),
130130 ],
131131 "preprocessing" : [
@@ -155,7 +155,7 @@ def test_batch_axis(kwargs: Dict[str, Any]):
155155@pytest .mark .parametrize (
156156 "kwargs" ,
157157 [
158- {"type" : "space" , "name " : "x" , "size" : 10 },
158+ {"type" : "space" , "id " : "x" , "size" : 10 },
159159 SpaceInputAxis (id = AxisId ("x" ), size = 10 ),
160160 {"type" : "batch" },
161161 ],
@@ -274,17 +274,17 @@ def test_output_fixed_shape_too_small(model_data: Dict[str, Any]):
274274
275275
276276def test_output_ref_shape_mismatch (model_data : Dict [str , Any ]):
277- model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "name " : "x" , "size" : {"reference" : "input_1.x" }, "halo" : 2 }
277+ model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "id " : "x" , "size" : {"reference" : "input_1.x" }, "halo" : 2 }
278278 summary = validate_format (model_data )
279279 assert summary .status == "passed" , summary .format ()
280280 # input_1.x -> input_1.z
281- model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "name " : "x" , "size" : {"reference" : "input_1.z" }, "halo" : 2 }
281+ model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "id " : "x" , "size" : {"reference" : "input_1.z" }, "halo" : 2 }
282282 summary = validate_format (model_data )
283283 assert summary .status == "failed" , summary .format ()
284284
285285
286286def test_output_ref_shape_too_small (model_data : Dict [str , Any ]):
287- model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "name " : "x" , "size" : {"reference" : "input_1.x" }, "halo" : 2 }
287+ model_data ["outputs" ][0 ]["axes" ][0 ] = {"type" : "space" , "id " : "x" , "size" : {"reference" : "input_1.x" }, "halo" : 2 }
288288 summary = validate_format (model_data )
289289 assert summary .status == "passed" , summary .format ()
290290
@@ -301,9 +301,9 @@ def test_model_has_parent_with_id(model_data: Dict[str, Any]):
301301
302302def test_model_with_expanded_output (model_data : Dict [str , Any ]):
303303 model_data ["outputs" ][0 ]["axes" ] = [
304- {"type" : "space" , "name " : "x" , "size" : {"reference" : "input_1.x" }},
305- {"type" : "space" , "name " : "y" , "size" : {"reference" : "input_1.y" }},
306- {"type" : "space" , "name " : "z" , "size" : 7 },
304+ {"type" : "space" , "id " : "x" , "size" : {"reference" : "input_1.x" }},
305+ {"type" : "space" , "id " : "y" , "size" : {"reference" : "input_1.y" }},
306+ {"type" : "space" , "id " : "z" , "size" : 7 },
307307 {"type" : "channel" , "size" : {"reference" : "input_1.channel" }},
308308 ]
309309
0 commit comments