From 8e23f1bc8d16d9b67643fa7b6f6720b09bd492e2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 21 Oct 2012 20:06:40 -0400 Subject: [PATCH] tabulate: fix stat -> statistic in _statistic(). --- pygrader/tabulate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygrader/tabulate.py b/pygrader/tabulate.py index d8a962d..4237b29 100644 --- a/pygrader/tabulate.py +++ b/pygrader/tabulate.py @@ -62,18 +62,18 @@ def _statistic(iterabale, statistic): _LOG.warning('error importing numpy, falling back to workarounds') _LOG.warning(str(_numpy_import_error)) _numpy_import_error = None - if stat == 'Mean': + if statistic == 'Mean': if _numpy is None: # work around missing numpy return _mean(iterable) else: return gs.mean() - elif stat == 'Std. Dev.': + elif statistic == 'Std. Dev.': if _numpy is None: # work around missing numpy sval = _std(iterable) else: return gs.std() else: - raise NotImplementedError(stat) + raise NotImplementedError(statistic) def tabulate(course, statistics=False, stream=None, use_color=None, **kwargs): """Return a table of student's grades to date -- 2.26.2