From f9c6ca4c9fff8bbe9516005bfd31da6d1cabac8f Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 22 Mar 2016 18:21:13 +0000 Subject: [PATCH] Updated for new visualisation of PML region and source/receiver positions. --- tools/Paraview macros/gprMax_info.py | 43 +++++++++++++++------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/tools/Paraview macros/gprMax_info.py b/tools/Paraview macros/gprMax_info.py index 1f279f62..568fe1db 100644 --- a/tools/Paraview macros/gprMax_info.py +++ b/tools/Paraview macros/gprMax_info.py @@ -25,9 +25,6 @@ paraview.simple._DisableFirstRenderCameraReset() # Get whatever source is loaded (should be model) model = GetActiveSource() -# Get display properties -dp = GetDisplayProperties(model) - # Get active view renderview = GetActiveView() @@ -37,25 +34,24 @@ Show(model, renderview) # Reset view to fit data renderview.ResetCamera() -# Lists to hold material and sources/receiver identifiers written in VTK file in tags and +# Lists to hold material and sources/receiver identifiers written in VTK file in tags and materials = [] -srcsrxs = [] +srcs_rxs_pml = [] with open(model.FileName[0], 'r') as f: for line in f: if line.startswith('