Trisurf Monte Carlo simulator
Samo Penic
2016-02-16 11fef8d1bbe449016584c061ddb2b302ee1ee593
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')
9 print(trisurf.items())
588bbb 10 xml=zlib.decompress(base64.b64decode(trisurf.text))
82fa41 11
588bbb 12 tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))