Trisurf Monte Carlo simulator
Samo Penic
2016-09-15 3cd5f4a96d445b55da8a7e6da8509bbd7d5d41b8
commit | author | age
82fa41 1 #!/usr/bin/python3
SP 2 import xml.etree.ElementTree as ET
588bbb 3 import base64
SP 4 import zlib
82fa41 5
SP 6 tree = ET.parse('../src/timestep_000000.vtu')
7 root = tree.getroot()
8 trisurf=root.find('trisurf')
bc14fb 9 version=root.find('trisurfversion')
SP 10 print(version.text);
82fa41 11 print(trisurf.items())
SP 12
bc14fb 13 #xml=zlib.decompress(base64.b64decode(trisurf.text))
SP 14 #xml=trisurf.text
15 #print(xml)
16
17 #tree2=ET.ElementTree(ET.fromstring(str(xml))
18 #tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))