projects
/
pygrader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d937f22
)
tabulate: fix stat -> statistic in _statistic().
author
W. Trevor King
<wking@tremily.us>
Mon, 22 Oct 2012 00:06:40 +0000
(20:06 -0400)
committer
W. Trevor King
<wking@tremily.us>
Mon, 22 Oct 2012 00:06:40 +0000
(20:06 -0400)
pygrader/tabulate.py
patch
|
blob
|
history
diff --git
a/pygrader/tabulate.py
b/pygrader/tabulate.py
index d8a962d00615ac48ad4e28e6124993d25c285073..4237b293ced2bb225e66fb1766f5e5c4e6142312 100644
(file)
--- 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
_LOG.warning('error importing numpy, falling back to workarounds')
_LOG.warning(str(_numpy_import_error))
_numpy_import_error = None
- if stat == 'Mean':
+ if stat
istic
== 'Mean':
if _numpy is None: # work around missing numpy
return _mean(iterable)
else:
return gs.mean()
if _numpy is None: # work around missing numpy
return _mean(iterable)
else:
return gs.mean()
- elif stat == 'Std. Dev.':
+ elif stat
istic
== 'Std. Dev.':
if _numpy is None: # work around missing numpy
sval = _std(iterable)
else:
return gs.std()
else:
if _numpy is None: # work around missing numpy
sval = _std(iterable)
else:
return gs.std()
else:
- raise NotImplementedError(stat)
+ raise NotImplementedError(stat
istic
)
def tabulate(course, statistics=False, stream=None, use_color=None, **kwargs):
"""Return a table of student's grades to date
def tabulate(course, statistics=False, stream=None, use_color=None, **kwargs):
"""Return a table of student's grades to date