Skip to content

Commit

Permalink
Indicate how many times the baud fits in a 'empty' peak
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Oct 22, 2016
1 parent 3778e27 commit 2361d22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ooktools/commands/information.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,11 @@ def get_wave_binary(source):
# For now, just discard this.
click.secho('Skipping for {} as it fits {} times(s)'.format(
peak_data['distance'], baud_fits_in_peak), dim=True)
key.append('[ ]')
key.append(' [{}] '.format(baud_fits_in_peak))

# Print the keys we have found!
if len(key) > 0:

# Indicate that [ ] mean large breaks in the signal
if '[ ]' in key:
click.secho('[ ] indicates breaks', fg='white')
click.secho('[ ] indicates number of breaks.', fg='white')
click.secho('Key Data: {}'.format(''.join(str(x) for x in key)), bold=True)

0 comments on commit 2361d22

Please sign in to comment.