From 968e0eec235c3f834cb8d08f25b250619660afb8 Mon Sep 17 00:00:00 2001 From: Josef Fruehwald Date: Tue, 5 Nov 2013 13:53:01 +0000 Subject: [PATCH] fixed a bug with the progress bar --- FAVE-extract/bin/extractFormants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FAVE-extract/bin/extractFormants.py b/FAVE-extract/bin/extractFormants.py index 861be08..6602b5a 100755 --- a/FAVE-extract/bin/extractFormants.py +++ b/FAVE-extract/bin/extractFormants.py @@ -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 @@ -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