From f3b8c3a558547dba397cc34d33b8a49c3f95ea9e Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Fri, 26 Feb 2016 15:32:31 +0000 Subject: [PATCH] Updated to reflect changed names in Waveform class. --- tools/plot_builtin_wave.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/plot_builtin_wave.py b/tools/plot_builtin_wave.py index bd5fb42b..888a02ae 100644 --- a/tools/plot_builtin_wave.py +++ b/tools/plot_builtin_wave.py @@ -39,8 +39,8 @@ parser.add_argument('-fft', action='store_true', default=False, help='plot FFT') args = parser.parse_args() # Check waveform parameters -if args.type.lower() not in Waveform.waveformtypes: - raise CmdInputError('The waveform must have one of the following types {}'.format(', '.join(Waveform.waveformtypes))) +if args.type.lower() not in Waveform.types: + raise CmdInputError('The waveform must have one of the following types {}'.format(', '.join(Waveform.types))) if args.freq <= 0: raise CmdInputError('The waveform requires an excitation frequency value of greater than zero')