Trisurf Monte Carlo simulator
Samo Penic
2016-06-02 08a4a2072e2248696eeb2a5cf93a8bcb90390596
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>"))