changeset 2490:41346c364ac1

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Mon, 08 Aug 2016 14:20:59 +0100
parents f377350e7259 (current diff) 4c83eaacf002 (diff)
children 09936f12f885
files
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'
--- 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)