# HG changeset patch # User Brecht De Man # Date 1470659195 -7200 # Node ID 4c83eaacf002cca9e8aa499825a10ab4ccfb2851 # Parent b0ef31a58ec5454550e1e3e866848ffc33758596 Score plots make sense for single subjects; generate_report month off-by-one error fixed diff -r b0ef31a58ec5 -r 4c83eaacf002 python/generate_report.py --- 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' diff -r b0ef31a58ec5 -r 4c83eaacf002 python/score_plot.py --- 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)