From 8c1bb171977954d573a50d03308c9221d4c0ee8e Mon Sep 17 00:00:00 2001
From: Samo Penic <samo@altea>
Date: Tue, 16 Feb 2016 19:46:14 +0000
Subject: [PATCH] Starting with restore. Not working yet. Changes in main for debugging only

---
 python/parse_vtu.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/parse_vtu.py b/python/parse_vtu.py
index f077190..02113c2 100755
--- a/python/parse_vtu.py
+++ b/python/parse_vtu.py
@@ -1,10 +1,12 @@
 #!/usr/bin/python3
 import xml.etree.ElementTree as ET
-
+import base64
+import zlib
 
 tree = ET.parse('../src/timestep_000000.vtu')
 root = tree.getroot()
 trisurf=root.find('trisurf')
 print(trisurf.items())
+xml=zlib.decompress(base64.b64decode(trisurf.text))
 
-
+tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))

--
Gitblit v1.9.3