From f88e3c7392b3471b5ff6f943320fc641ccb94e04 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 1 Nov 2017 14:19:11 +0000 Subject: [PATCH] Changed to binary file reading to overcome bug with not reading to end of file in Windows. --- tools/Paraview macros/gprMax_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Paraview macros/gprMax_info.py b/tools/Paraview macros/gprMax_info.py index d8d0bb54..dcd562e8 100644 --- a/tools/Paraview macros/gprMax_info.py +++ b/tools/Paraview macros/gprMax_info.py @@ -38,7 +38,7 @@ renderview.ResetCamera() materials = [] srcs_pml = [] rxs = [] -with open(model.FileName[0], 'r') as f: +with open(model.FileName[0], 'rb') as f: for line in f: if line.startswith('