Fix attributes with spaces in names (#1305)

main
zhiltsov-max 6 years ago committed by GitHub
parent 796044782f
commit 4f20f46cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ class DatasetItemEncoder:
ET.SubElement(ann_elem, 'type').text = str(annotation.type.name)
for k, v in annotation.attributes.items():
ET.SubElement(ann_elem, k).text = str(v)
ET.SubElement(ann_elem, k.replace(' ', '-')).text = str(v)
ET.SubElement(ann_elem, 'group').text = str(annotation.group)

Loading…
Cancel
Save