Commit 65838230 authored by Alan Marchiori's avatar Alan Marchiori
Browse files

replace numpy with statistics

parent 8bba1cdb
......@@ -12,7 +12,11 @@ from utils.history import History
from utils.gitlab import GitLab
from utils.git import Git
from pprint import pprint
import numpy as np
# numpy causes a big/slow executable, removing for performance
#import numpy as np
# statistics has what we need (mean/stddev) and little extra.
import statistics
from collections import defaultdict
from utils.debug_port import udbg
from pprint import pprint
......@@ -155,8 +159,8 @@ def ta_report(coursename, coursepath, labname, user, clone):
if len(c_tot[labname]) > 0:
report_parts += [
"{:5.1f}, {:5.1f}".format(
np.mean(c_tot[labname]),
np.std(c_tot[labname])),
statistics.mean(c_tot[labname]),
statistics.stdev(c_tot[labname])),
]
else:
report_parts += [' ', ' ']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment