From 6b076a7cb8349063fec84d5c58b02f723951b94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Bj=C3=B8rndal?= Date: Wed, 25 Jan 2017 11:59:41 +0100 Subject: [PATCH] bugfix, to_save_str = ' '.join(to_save) fails if to_save is Noen (which is the default!) --- gprMax/input_cmd_funcs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gprMax/input_cmd_funcs.py b/gprMax/input_cmd_funcs.py index 387db89a..21f9aec8 100644 --- a/gprMax/input_cmd_funcs.py +++ b/gprMax/input_cmd_funcs.py @@ -621,7 +621,11 @@ def rx(x, y, z, identifier=None, to_save=None, polarisation=None, dxdy=None, rot x, y, xf, yf = rotate90_edge(x, y, xf, yf, polarisation, rotate90origin) c = Coordinate(x, y, z) - command('rx', str(c), identifier, ' '.join(to_save)) + to_save_str = '' + if to_save is not None: + to_save_str = ' '.join(to_save) + + command('rx', str(c), identifier, to_save_str) return c