From 2fcafc682993fc96875fcb0e1c5ee0beea03bf89 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Fri, 26 Feb 2016 15:29:07 +0000 Subject: [PATCH] Updated to reflect name changes in Waveform class. --- gprMax/input_cmds_multiuse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/input_cmds_multiuse.py b/gprMax/input_cmds_multiuse.py index 8113ae58..8e841a3f 100644 --- a/gprMax/input_cmds_multiuse.py +++ b/gprMax/input_cmds_multiuse.py @@ -43,8 +43,8 @@ def process_multicmds(multicmds, G): tmp = cmdinstance.split() if len(tmp) != 4: raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' requires exactly four parameters') - if tmp[0].lower() not in Waveform.waveformtypes: - raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' must have one of the following types {}'.format(','.join(Waveform.waveformtypes))) + if tmp[0].lower() not in Waveform.types: + raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' must have one of the following types {}'.format(','.join(Waveform.types))) 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):