treefy_states

Contents

treefy_states#

class brainstate.graph.treefy_states(node, *filters)#

Return the treefy state mapping of node, optionally filtered.

Parameters:
Returns:

The treefy state mapping (or partitions when multiple filters given).

Return type:

NestedDict | Tuple[NestedDict, ...]