Mercurial > hg > webaudioevaluationtool
changeset 2489:4c83eaacf002
Score plots make sense for single subjects; generate_report month off-by-one error fixed
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Mon, 08 Aug 2016 14:26:35 +0200 |
parents | b0ef31a58ec5 |
children | 41346c364ac1 2305ef6779fe |
files | python/generate_report.py python/score_plot.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/generate_report.py Mon Aug 08 12:24:40 2016 +0200 +++ b/python/generate_report.py Mon Aug 08 14:26:35 2016 +0200 @@ -149,7 +149,7 @@ int(hour),int(minute),int(second))) # date as section title - body = '\n\section{'+day+' '+month_array[int(month)]+' '+year+' '+hour+':'+minute+':'+second+'}\n' + body = '\n\section{'+day+' '+month_array[int(month)-1]+' '+year+' '+hour+':'+minute+':'+second+'}\n' # file name body += '\t\tFile: '+file[:-4]+'\\\\ \n'
--- a/python/score_plot.py Mon Aug 08 12:24:40 2016 +0200 +++ b/python/score_plot.py Mon Aug 08 14:26:35 2016 +0200 @@ -140,6 +140,9 @@ print("WARNING: Just one subject for " + page_name + ". Moving on to next file.") break + if len(ratings.shape) <= 1: # if only single subject + ratings = [[r] for r in ratings] # turn into array of arrays + # BOXPLOT if enable_boxplot: plt.boxplot(ratings)