From b822a17be4d990eee48ebef17f3db566f87d03ac Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 27 Jan 2016 10:59:17 +0000 Subject: [PATCH] Corrected display of snapshot times. --- gprMax/input_cmd_funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/input_cmd_funcs.py b/gprMax/input_cmd_funcs.py index 1e7027f1..2ace6390 100644 --- a/gprMax/input_cmd_funcs.py +++ b/gprMax/input_cmd_funcs.py @@ -104,7 +104,7 @@ def snapshot(xs, ys, zs, xf, yf, zf, dx, dy, dz, time, filename): filename (str): Filename where geometry file information will be stored. """ - if '.' in time or 'e' in time: + if '.' in str(time) or 'e' in str(time): time = float(time) print('#snapshot: {:g} {:g} {:g} {:g} {:g} {:g} {:g} {:g} {:g} {:g} {}'.format(xs, ys, zs, xf, yf, zf, dx, dy, dz, time, filename)) else: