pyphi.condensation.exclusion_records#

pyphi.condensation.exclusion_records(accepted, candidates)[source]#

Map each accepted complex (by sorted footprint) to the ExcludedCandidate records it excluded: every candidate with φₛ > 0 that overlaps it and was not itself accepted.

A candidate that overlaps several accepted complexes appears in each of their exclusion sets. An excluded candidate may carry higher φₛ than a complex whose record it appears in, when it was carved away by a different overlapping complex. Accepted candidates are identified by object identity, not footprint, so a losing candidate that shares an accepted complex’s exact footprint — a rival grain over the same micro units — is recorded. Reads only values the cascade already computed.

Parameters:
Return type:

dict[tuple[int, …], tuple[Any, …]]