Commits

Richard Lawrence committed 5918f12

* schoolutils/reporting/reports.py: bugfix: histogram bins

Comments (0)

Files changed (1)

schoolutils/reporting/reports.py

             else:
                 raise ValueError("Can't calculate histogram bins for assignment type %s" %
                                  types[0])
-            bins = [p[2], p[3] for p in scale]
+            bins = [(p[2], p[3]) for p in scale]
             bins.pop(-1) # remove "dummy" limits bin with inf/-inf bounds 
             freqs = ch.freqs_for_numbers(values, bins)