Mercurial > hg > webaudioevaluationtool
changeset 2533:370a82784c71
Fix 'evaluation_stats.py' (new test duration format)
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Wed, 09 Nov 2016 21:13:27 +0100 |
parents | af8570f0e8dc |
children | 56847aaebc9b dd5290724a76 eeb2e6dce5f2 |
files | python/comment_parser.py python/evaluation_stats.py |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/python/comment_parser.py Wed Nov 09 15:29:34 2016 +0100 +++ b/python/comment_parser.py Wed Nov 09 21:13:27 2016 +0100 @@ -9,7 +9,7 @@ # COMMAND LINE ARGUMENTS assert len(sys.argv)<3, "comment_parser takes at most 1 command line argument\n"+\ - "Use: python score_parser.py [rating_folder_location]" + "Use: python comment_parser.py [rating_folder_location]" # XML results files location if len(sys.argv) == 1: @@ -45,7 +45,7 @@ page_name = audioholder.get('ref') # get page name if page_name is None: # ignore 'empty' audio_holders - print("WARNING: " + file + " contains empty page. (comment_parser.py)") + print("WARNING: " + file + " contains empty page.") break if audioholder.get("state") != "complete":
--- a/python/evaluation_stats.py Wed Nov 09 15:29:34 2016 +0100 +++ b/python/evaluation_stats.py Wed Nov 09 21:13:27 2016 +0100 @@ -69,8 +69,7 @@ not_played = 0 # for this page not_moved = 0 # for this page - # 'testTime' keeps total duration: subtract time so far for duration of this page - duration = float(page.find("./metric/metricresult[@id='testTime']").text) - total_duration + duration = float(page.find("./metric/metricresult[@id='testTime']").text) #- total_duration # total duration of test total_duration += duration