Skip to content

Commit

Permalink
fixed a bug with the progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrhwld committed Nov 5, 2013
1 parent 7b413ab commit 968e0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FAVE-extract/bin/extractFormants.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ def getWordsAndPhones(tg, phoneset, speaker, vowelSystem):
word_iter = word_iter + 1
new_percent = math.floor((float(word_iter)/n_words)*100)

if new_percent != old_percent:
for p in range(int(old_percent), int(new_percent)):
sys.stdout.write("-")
sys.stdout.flush()
old_percent = new_percent
Expand Down Expand Up @@ -1999,7 +1999,7 @@ def extractFormants(wavInput, tgInput, output, opts, SPATH='', PPATH=''):
word_iter = word_iter + 1
new_percent = math.floor((float(word_iter)/n_words)*100)

if new_percent != old_percent:
for p in range(int(old_percent), int(new_percent)):
sys.stdout.write("-")
sys.stdout.flush()
old_percent = new_percent
Expand Down

0 comments on commit 968e0ee

Please sign in to comment.