MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / to_xml

Method to_xml

pythonfmu/variables.py:152–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 self.__attrs["start"] = value
151
152 def to_xml(self) -> Element:
153 attrib = dict()
154 for key, value in self.__attrs.items():
155 if value is not None:
156 attrib[key] = str(value)
157 parent = super().to_xml()
158 SubElement(parent, "Integer", attrib)
159
160 return parent
161
162
163class Boolean(ScalarVariable):

Callers 1

test_Integer_to_xmlFunction · 0.95

Calls 1

to_xmlMethod · 0.45

Tested by 1

test_Integer_to_xmlFunction · 0.76