pyphi.core.repertoire_algebra.transient_repertoires#

pyphi.core.repertoire_algebra.transient_repertoires()[source]#

Compute repertoires without storing them in the kernel cache.

Within this scope every memoized kernel function returns its value without admitting it, leaving the cache’s occupancy unchanged. Reads still hit entries admitted outside the scope.

Notes

A sweep that evaluates a repertoire at every state of a mechanism or purview reads each of its intermediates exactly once, while the intermediates themselves are full repertoires. Admitting them costs the product of the state count and the repertoire size — for an n-unit system, order 4ⁿ cells to answer 2ⁿ single-use questions — for a hit rate of zero within the sweep. A later single-state probe of the same repertoire recomputes rather than hitting a retained entry, which is one evaluation against the state count’s worth of retained cells.

Scoped to the calling thread (and to the current task under asyncio), so a worker suppressing admission does not disturb the others.

Return type:

Iterator[None]