self.info = getattr(obj, 'info', {})
# We do not need to return anything
+ def __reduce__(self):
+ base_class_state = list(numpy.ndarray.__reduce__(self))
+ own_state = (self.info,)
+ return (base_class_state, own_state)
+
+ def __setstate__(self,state):
+ base_class_state,own_state = state
+ numpy.ndarray.__setstate__(self, base_class_state)
+ self.info, = own_state
+
class Curve (object):
"""A grouped set of :class:`Data` runs from the same file with metadata.