Mercurial > hg > webaudioevaluationtool
diff scripts/evaluation_stats.py @ 2228:3358d04605db
Updated scripts to work with latest results document specification
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 14 Apr 2016 17:16:20 +0100 |
parents | 749adcb68e99 |
children | 86fd1dbae138 |
line wrap: on
line diff
--- a/scripts/evaluation_stats.py Thu Apr 14 15:58:52 2016 +0100 +++ b/scripts/evaluation_stats.py Thu Apr 14 17:16:20 2016 +0100 @@ -56,12 +56,14 @@ # get list of all page names for audioholder in root.findall("./page"): # iterate over pages - page_name = audioholder.get('id') # get page name + page_name = audioholder.get('ref') # get page name if page_name is None: # ignore 'empty' audio_holders print "WARNING: " + file + " contains empty audio holder. (evaluation_stats.py)" break # move on to next - + if audioholder.get("state") != "complete": + print "WARNING" + file + " contains incomplete audio holder." + break number_of_comments = 0 # for this page number_of_missing_comments = 0 # for this page not_played = 0 # for this page