pyphi.actual.extrinsic_events#

pyphi.actual.extrinsic_events(substrate, previous_state, current_state, next_state, *, subset=None, maximal_complex=None)[source]#

Set of all mechanisms that are in the maximal complex but which have true causes and effects within the entire substrate.

Parameters:
  • substrate (Substrate) – The substrate to analyze.

  • previous_state (tuple[int]) – The state of the substrate at t - 1.

  • current_state (tuple[int]) – The state of the substrate at t.

  • next_state (tuple[int]) – The state of the substrate at t + 1.

  • subset (optional) – The units of the maximal complex, by index or label. None finds the maximal complex with maximal_complex().

  • maximal_complex (Complex, optional) – The maximal complex. Give at most one of subset and maximal_complex.

Returns:

tuple[Event] – The extrinsic events in the maximal complex.

Raises:

ValueError – If both subset and maximal_complex are given.