Trisurf Monte Carlo simulator
Samo Penic
2016-05-28 24d7222974b050e04a79bccc5d8350929a0c3456
python/parse_vtu.py
@@ -6,7 +6,13 @@
tree = ET.parse('../src/timestep_000000.vtu')
root = tree.getroot()
trisurf=root.find('trisurf')
version=root.find('trisurfversion')
print(version.text);
print(trisurf.items())
xml=zlib.decompress(base64.b64decode(trisurf.text))
tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))
#xml=zlib.decompress(base64.b64decode(trisurf.text))
#xml=trisurf.text
#print(xml)
#tree2=ET.ElementTree(ET.fromstring(str(xml))
#tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))