From 82fa4172eadaff3e8c5f456ceefe947fb2fcec4c Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Mon, 15 Feb 2016 19:24:55 +0000 Subject: [PATCH] Added python script that searches the VTU's xml tree --- python/parse_vtu.py | 10 ++++++++++ python/.parse_vtu.py.swp | 0 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/python/.parse_vtu.py.swp b/python/.parse_vtu.py.swp new file mode 100644 index 0000000..ca19c6e --- /dev/null +++ b/python/.parse_vtu.py.swp Binary files differ diff --git a/python/parse_vtu.py b/python/parse_vtu.py new file mode 100755 index 0000000..f077190 --- /dev/null +++ b/python/parse_vtu.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 +import xml.etree.ElementTree as ET + + +tree = ET.parse('../src/timestep_000000.vtu') +root = tree.getroot() +trisurf=root.find('trisurf') +print(trisurf.items()) + + -- Gitblit v1.9.3