Skip to content
Snippets Groups Projects
Commit 649bf247 authored by Alexander Kreft's avatar Alexander Kreft
Browse files

Convert property value nan to NaN.

parent ea2673c5
Branches
Tags
1 merge request!9Convert property value nan to NaN.
Pipeline #7116 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