pyphi.distribution.purview#

pyphi.distribution.purview(repertoire)[source]#

Return the purview over which a repertoire is distributed.

Purview nodes are identified as those with a non-unitary axis: a purview node carries its full alphabet along its dimension (size ≥ 2), while a node outside the purview is collapsed to a unitary (size-1) dimension. This holds for k-ary as well as binary nodes.

Parameters:

repertoire (np.ndarray or None) – A repertoire, or None.

Returns:

tuple[int] or None – The indices of the purview nodes, or None if repertoire is None.

Return type:

Purview | None