Closed sanoke closed 8 years ago
From Project Spec 4, implement the following new functions:
__contains__
itervalues
times
items
Also, make sure that the following functions are implemented as described:
__getitem__
__setitem__
__iter__
values
itertimes
iteritems
__len__
__repr__
I'm going to also add "values" because I don't think we have that.
Just completed. OK to close? @sanoke
From Project Spec 4, implement the following new functions:
__contains__
: is a value in the valuesitervalues
: returns an iterator over themtimes
: returns a numpy array of timesitems
: returns a list of time-value tuple pairsAlso, make sure that the following functions are implemented as described:
__getitem__
: to get a value for a given index__setitem__
: set the value for the given index__iter__
: iterates over values. (This might have iterated over tuples of (time, value) pairs earlier)values
: returns a numpy array of valuesitertimes
: returns an iterator over themiteritems
: returns an iterator over these__len__
: returns a length__repr__
: abbreviating string representation