File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,6 @@ def dict_export(
296296 try :
297297 diameter_3d = raw_value ["diameter_3d" ]
298298 model_confidence = raw_value ["model_confidence" ]
299- model_id = raw_value ["model_id" ]
300299 sphere_center = raw_value ["sphere" ]["center" ]
301300 sphere_radius = raw_value ["sphere" ]["radius" ]
302301 circle_3d_center = raw_value ["circle_3d" ]["center" ]
@@ -310,7 +309,6 @@ def dict_export(
310309 except KeyError :
311310 diameter_3d = None
312311 model_confidence = None
313- model_id = None
314312 sphere_center = [None , None , None ]
315313 sphere_radius = None
316314 circle_3d_center = [None , None , None ]
@@ -322,6 +320,9 @@ def dict_export(
322320 projected_sphere_axis = [None , None ]
323321 projected_sphere_angle = None
324322
323+ # pye3d no longer includes this field. Keeping for backwards-compatibility.
324+ model_id = raw_value .get ("model_id" , None )
325+
325326 return {
326327 # 2d data
327328 "pupil_timestamp" : pupil_timestamp ,
You can’t perform that action at this time.
0 commit comments