# HG changeset patch # User Jeff Hammel # Date 1425171904 28800 # Node ID 06094870fdd7704a0ec7be31eaa5c30589705dc6 # Parent 9a2674b32754aa584a0b2e99799cf532ba5cf042 more stubbing diff -r 9a2674b32754 -r 06094870fdd7 numerics/histogram.py --- a/numerics/histogram.py Sat Feb 28 17:02:20 2015 -0800 +++ b/numerics/histogram.py Sat Feb 28 17:05:04 2015 -0800 @@ -41,7 +41,9 @@ def add(self, *values): """add values to the histogram""" for value in values: - raise NotImplementedError('TODO') # -> record TODO items + for vmin, vmax in self.data.keys(): + if vmin <= value <= vmax: + self.data[(vmin, vmax)].append(value) def __iadd__(self, value): self.add(value)