Skip to content
Snippets Groups Projects
Commit b14d7bfe authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-insert-nan' into 'dev'

Convert property value nan to NaN.

See merge request !9
parents ea2673c5 649bf247
Branches
Tags
1 merge request!9Convert property value nan to NaN.
Pipeline #11953 passed with warnings
...@@ -856,6 +856,8 @@ class Entity(object): ...@@ -856,6 +856,8 @@ class Entity(object):
xml.append(v_elem) xml.append(v_elem)
elif self.value == "": elif self.value == "":
xml.append(etree.Element("EmptyString")) xml.append(etree.Element("EmptyString"))
elif str(self.value) == "nan":
xml.text = "NaN"
else: else:
xml.text = str(self.value) xml.text = str(self.value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment