# HG changeset patch # User www-data # Date 1470662459 -3600 # Node ID 41346c364ac1c02e228aa5d0610e2c6041c40b91 # Parent f377350e7259cfe8731d4a8ab7dc991ede1eba34# Parent 4c83eaacf002cca9e8aa499825a10ab4ccfb2851 Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool diff -r f377350e7259 -r 41346c364ac1 python/generate_report.py --- a/python/generate_report.py Mon Aug 08 12:20:51 2016 +0100 +++ b/python/generate_report.py Mon Aug 08 14:20:59 2016 +0100 @@ -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' diff -r f377350e7259 -r 41346c364ac1 python/score_plot.py --- a/python/score_plot.py Mon Aug 08 12:20:51 2016 +0100 +++ b/python/score_plot.py Mon Aug 08 14:20:59 2016 +0100 @@ -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)