From d3d7443dd717a4d88d3db502c91d41d7858cdb71 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Tue, 17 Nov 2015 12:58:08 +0000 Subject: [PATCH] Corrected file reading, should be binary to handle raw section of file with VTK data. --- tools/Paraview macros/gprMax_materials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Paraview macros/gprMax_materials.py b/tools/Paraview macros/gprMax_materials.py index c5b63806..d7fa68b0 100644 --- a/tools/Paraview macros/gprMax_materials.py +++ b/tools/Paraview macros/gprMax_materials.py @@ -36,7 +36,7 @@ renderview.ResetCamera() # List to hold material identifiers written in VTK file in tags materials = [] -with open(model.FileName[0], 'r') as f: +with open(model.FileName[0], 'rb') as f: for line in f: if line.startswith('