From c308274c1dfba9a94bb3abc8aac46939144e758a Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 13 Jan 2016 15:07:35 +0000 Subject: [PATCH] Corrected bug with printing waveform ID when duplicate found. --- gprMax/input_cmds_multiuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/input_cmds_multiuse.py b/gprMax/input_cmds_multiuse.py index f96dfbd5..e3ef387d 100644 --- a/gprMax/input_cmds_multiuse.py +++ b/gprMax/input_cmds_multiuse.py @@ -47,7 +47,7 @@ def process_multicmds(multicmds, G): if float(tmp[2]) <= 0: raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' requires an excitation frequency value of greater than zero') if any(x.ID == tmp[3] for x in G.waveforms): - raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' with ID {} already exists'.format(tmp[2])) + raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' with ID {} already exists'.format(tmp[3])) w = Waveform() w.ID = tmp[3]