pyphi.macro.tpm.macro_tpms#

pyphi.macro.tpm.macro_tpms(substrate, units, micro_history)[source]#

The macro cause and effect TPMs (T_c, T_e) (Eqs. 26-42).

Parameters:
  • substrate (Substrate) – A binary Substrate for the micro universe.

  • units (sequence of MacroUnit) – The system’s macro units. Their U^J union W^J must be pairwise disjoint (Eq. 19).

  • micro_history (sequence of universe states) – Universe micro states, oldest first, of length max(tau_J); the last entry is the current state.

Returns:

tuple[FactoredTPM, FactoredTPM] – (T_c, T_e) with one factor per macro unit over the macro system’s states.

Raises:

ValueError – If the substrate is not binary, the units are not pairwise disjoint (Eq. 19), or micro_history does not have exactly max(tau_J) entries.