# HG changeset patch # User Brecht De Man # Date 1478722407 -3600 # Node ID 370a82784c712411395e39f7ac94de77b0127625 # Parent af8570f0e8dc455d9c598de1a220d5385535d465 Fix 'evaluation_stats.py' (new test duration format) diff -r af8570f0e8dc -r 370a82784c71 python/comment_parser.py --- 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": diff -r af8570f0e8dc -r 370a82784c71 python/evaluation_stats.py --- 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