mirror of
https://github.com/romanz/amodem.git
synced 2026-03-17 07:05:59 +08:00
amodem-cli: fix description logging
This commit is contained in:
@@ -124,7 +124,7 @@ def main():
|
||||
logging.basicConfig(level=level, format=format)
|
||||
|
||||
# Parsing and execution
|
||||
log.debug('MODEM settings: %r', config.settings)
|
||||
log.debug(description)
|
||||
if getattr(args, 'plot', False):
|
||||
import pylab
|
||||
args.plot = pylab
|
||||
|
||||
@@ -200,7 +200,7 @@ class Receiver(object):
|
||||
self.stats['rx_bits'] = 0
|
||||
self.stats['rx_start'] = time.time()
|
||||
|
||||
log.info('Starting demodulation: %s', self.modem)
|
||||
log.info('Starting demodulation')
|
||||
for i, block in enumerate(common.izip(streams), 1):
|
||||
for bits in block:
|
||||
self.stats['rx_bits'] = self.stats['rx_bits'] + len(bits)
|
||||
|
||||
@@ -65,7 +65,7 @@ def main(args):
|
||||
reader = stream.Reader(args.input, bufsize=(64 << 10), eof=True)
|
||||
data = itertools.chain.from_iterable(reader)
|
||||
bits = framing.encode(data)
|
||||
log.info('Starting modulation: %s', sender.modem)
|
||||
log.info('Starting modulation')
|
||||
sender.modulate(bits=bits)
|
||||
|
||||
data_duration = sender.offset - training_duration
|
||||
|
||||
Reference in New Issue
Block a user