This module defines objects for tracking the derivation of one Stream from another.
>>> import copy
>>> s1 = stream.Stream()
>>> s2 = stream.Stream()
>>> d1 = derivation.Derivation(s1)
>>> d1.setAncestor(s2)
>>> d1.getAncestor() is s2
True
>>> d1.getContainer() is s1
True
>>> d2 = copy.deepcopy(d1)
>>> d2.getAncestor() is s2
True
>>> d1.setMethod('measure')
>>> d1.getMethod()
'measure'
Derivation methods
sets a string identifying how the object was derived
Unwrap any and all weakrefs stored.
>>> s1 = stream.Stream()
>>> s2 = stream.Stream()
>>> d1 = derivation.Derivation(s1) # sets container
>>> d1.setAncestor(s2)
>>> common.isWeakref(d1._container)
True
>>> d1.unwrapWeakref()
>>> common.isWeakref(d1._container)
False
Wrap all stored objects with weakrefs.