mirror of
https://github.com/romanz/amodem.git
synced 2026-03-17 15:16:00 +08:00
amodem: fix --plot switch
This commit is contained in:
@@ -98,7 +98,7 @@ def main():
|
||||
'--skip', type=int, default=128,
|
||||
help='skip initial N samples, due to spurious spikes')
|
||||
receiver.add_argument(
|
||||
'--plot', dest='plt', action='store_true', default=False,
|
||||
'--plot', action='store_true', default=False,
|
||||
help='plot results using pylab module')
|
||||
receiver.set_defaults(
|
||||
main=run_recv,
|
||||
@@ -120,6 +120,9 @@ def main():
|
||||
|
||||
# Parsing and execution
|
||||
log.debug('MODEM settings: %r', config.settings)
|
||||
if args.plot:
|
||||
import pylab
|
||||
args.plot = pylab
|
||||
args.main(args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user