# HG changeset patch # User Jeff Hammel # Date 1425171740 28800 # Node ID 9a2674b32754aa584a0b2e99799cf532ba5cf042 # Parent 7a979736bbfc96bbdd41368628fbffddaa2449a2 stubbing diff -r 7a979736bbfc -r 9a2674b32754 numerics/histogram.py --- a/numerics/histogram.py Sat Feb 28 17:00:35 2015 -0800 +++ b/numerics/histogram.py Sat Feb 28 17:02:20 2015 -0800 @@ -40,10 +40,20 @@ def add(self, *values): """add values to the histogram""" + for value in values: + raise NotImplementedError('TODO') # -> record TODO items def __iadd__(self, value): + self.add(value) return self + def __call__(self, *values): + """ + add values to the histogram and return + OrderedDict of counts + """ + self.add(*values) + class HistogramParser(CSVParser): """histogram CLI option parser"""