From 6be4393780b3639198f6e97b7c14cbe0df93a8bb Mon Sep 17 00:00:00 2001 From: craig-warren Date: Thu, 4 Feb 2016 12:18:04 +0000 Subject: [PATCH] Regression of file reading - should be 'rb' not just 'r' --- 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 e2599b5e..fedc5134 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('