Mercurial > hg > webaudioevaluationtool
comparison 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 |
comparison
equal
deleted
inserted
replaced
2226:43ab418ba4b8 | 2228:3358d04605db |
---|---|
54 total_duration = 0 | 54 total_duration = 0 |
55 page_number = 0 | 55 page_number = 0 |
56 | 56 |
57 # get list of all page names | 57 # get list of all page names |
58 for audioholder in root.findall("./page"): # iterate over pages | 58 for audioholder in root.findall("./page"): # iterate over pages |
59 page_name = audioholder.get('id') # get page name | 59 page_name = audioholder.get('ref') # get page name |
60 | 60 |
61 if page_name is None: # ignore 'empty' audio_holders | 61 if page_name is None: # ignore 'empty' audio_holders |
62 print "WARNING: " + file + " contains empty audio holder. (evaluation_stats.py)" | 62 print "WARNING: " + file + " contains empty audio holder. (evaluation_stats.py)" |
63 break # move on to next | 63 break # move on to next |
64 | 64 if audioholder.get("state") != "complete": |
65 print "WARNING" + file + " contains incomplete audio holder." | |
66 break | |
65 number_of_comments = 0 # for this page | 67 number_of_comments = 0 # for this page |
66 number_of_missing_comments = 0 # for this page | 68 number_of_missing_comments = 0 # for this page |
67 not_played = 0 # for this page | 69 not_played = 0 # for this page |
68 not_moved = 0 # for this page | 70 not_moved = 0 # for this page |
69 | 71 |