pyphi.campaign.shards.enumerate_partition_stride#

pyphi.campaign.shards.enumerate_partition_stride(mechanism, purview, node_labels, i, k)[source]#

Materialize stride i of k of the partition enumeration.

Returns the partitions and their global enumeration indices. Only the stride is materialized; the full enumeration is consumed lazily. The enumeration must use the same node_labels the analysis uses, so partition identities (their string forms) agree across processes.

Parameters:
Return type:

tuple[list, list[int]]