From 63cf04d1cd1eb26086406ec1340d57959e71c6d3 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Sun, 13 Mar 2016 12:38:18 +0000 Subject: [PATCH] Changed names of the file writing methods. --- gprMax/snapshots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/snapshots.py b/gprMax/snapshots.py index 99c09df4..b8ceb449 100644 --- a/gprMax/snapshots.py +++ b/gprMax/snapshots.py @@ -63,7 +63,7 @@ class Snapshot: self.time = time self.filename = filename - def prepare_file(self, modelrun, numbermodelruns, G): + def prepare_vtk_imagedata(self, modelrun, numbermodelruns, G): """Prepares a VTK ImageData (.vti) file for a snapshot. Args: @@ -104,7 +104,7 @@ class Snapshot: self.filehandle.write('\n'.format(Snapshot.floatname, vtk_current_offset).encode('utf-8')) self.filehandle.write('\n\n\n\n_'.encode('utf-8')) - def write_snapshot(self, Ex, Ey, Ez, Hx, Hy, Hz, G): + def write_vtk_imagedata(self, Ex, Ey, Ez, Hx, Hy, Hz, G): """Writes electric and magnetic field values to VTK ImageData (.vti) file. Args: