From 5ef87d4a298e5b24c7ddf42840f3c824d2f2caec Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Thu, 6 Jan 2022 20:58:27 +0000 Subject: [PATCH] Adjusted PV version number check. --- tools/Paraview macros/gprMax.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/Paraview macros/gprMax.py b/tools/Paraview macros/gprMax.py index dc26381b..fe6aa411 100644 --- a/tools/Paraview macros/gprMax.py +++ b/tools/Paraview macros/gprMax.py @@ -25,10 +25,10 @@ from paraview.simple import * # Read Paraview version number to set threshold filter method pvv = GetParaViewVersion() -if pvv.major == 5 and pvv.minor > 9: - new_thres = True -else: +if pvv.major == 5 and pvv.minor < 10: new_thres = False +else: + new_thres = True def threshold_filt(input, lt, ut, scalars): """Create threshold filter according to Paraview version.