diff --git a/tools/Paraview macros/gprMax_info.py b/tools/Paraview macros/gprMax_info.py index 74063bc6..1f279f62 100644 --- a/tools/Paraview macros/gprMax_info.py +++ b/tools/Paraview macros/gprMax_info.py @@ -37,7 +37,7 @@ 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 = [] with open(model.FileName[0], 'r') as f: diff --git a/tools/Paraview macros/gprMax_materials.py b/tools/Paraview macros/gprMax_materials.py deleted file mode 100644 index fedc5134..00000000 --- a/tools/Paraview macros/gprMax_materials.py +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (C) 2015-2016: The University of Edinburgh -# Authors: Craig Warren and Antonis Giannopoulos -# -# This file is part of gprMax. -# -# gprMax is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# gprMax is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with gprMax. If not, see . - -from paraview.simple import * -from xml.etree import ElementTree as ET - -# Disable automatic camera reset on 'Show' -paraview.simple._DisableFirstRenderCameraReset() - -# Get whatever source is loaded (should be model) -model = GetActiveSource() - -# Get active view -renderview = GetActiveView() - -# Show data in view -Show(model, renderview) - -# Reset view to fit data -renderview.ResetCamera() - -# List to hold material identifiers written in VTK file in tags -materials = [] -with open(model.FileName[0], 'rb') as f: - for line in f: - if line.startswith('