skbio.tree.TreeNode.invalidate_caches

TreeNode.invalidate_caches(attr=True)[source]

Delete lookup and attribute caches

Parameters:

attr : bool, optional

If True, invalidate attribute caches created by TreeNode.cache_attr.