From 30c4a2a7e65b4935ebb24d9eaa98d51e05dfad4a Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Thu, 28 Jan 2016 12:59:26 +0000 Subject: [PATCH] Updated to try and threshold only materials present in geometry file (and not all materials in model). Corrected the problem of not initially rendering things. --- tools/Paraview macros/gprMax_materials.py | 33 ++++++++++++----------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/tools/Paraview macros/gprMax_materials.py b/tools/Paraview macros/gprMax_materials.py index 031a13b2..e2599b5e 100644 --- a/tools/Paraview macros/gprMax_materials.py +++ b/tools/Paraview macros/gprMax_materials.py @@ -36,18 +36,18 @@ renderview.ResetCamera() # List to hold material identifiers written in VTK file in tags materials = [] -with open(model.FileName[0], 'rb') as f: +with open(model.FileName[0], 'r') as f: for line in f: if line.startswith('