skbio.tree.TreeNode.invalidate_caches

TreeNode.invalidate_caches(attr=True)[source]

Delete lookup and attribute caches

State: Experimental as of 0.4.0.

Parameters

attr (bool, optional) – If True, invalidate attribute caches created by TreeNode.cache_attr.