Mercurial > hg > webaudioevaluationtool
comparison scripts/score_parser.py @ 209:538322113524 Dev_main
Merge from the default branch
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 16 Jun 2015 14:14:08 +0100 |
parents | 59eea6eed91b |
children | fc056b63e208 |
comparison
equal
deleted
inserted
replaced
204:d12dbbab3565 | 209:538322113524 |
---|---|
16 | 16 |
17 # get list of all pages this subject evaluated | 17 # get list of all pages this subject evaluated |
18 for audioholder in root.findall("./audioholder"): # iterate over pages | 18 for audioholder in root.findall("./audioholder"): # iterate over pages |
19 page_name = audioholder.get('id') # get page name | 19 page_name = audioholder.get('id') # get page name |
20 #print ["DEBUG page " + page_name] | 20 #print ["DEBUG page " + page_name] |
21 | |
22 if page_name is None: # ignore 'empty' audio_holders | |
23 break | |
21 | 24 |
22 file_name = 'ratings/'+page_name+'-ratings.csv' # score file name | 25 file_name = 'ratings/'+page_name+'-ratings.csv' # score file name |
23 | 26 |
24 # create folder 'ratings if not yet created | 27 # create folder 'ratings if not yet created |
25 if not os.path.exists('ratings'): | 28 if not os.path.exists('ratings'): |