pyphi.actual.true_events#

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

Return all mechanisms that have true causes and true effects within the complex.

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 true events in the maximal complex.

Raises:
  • ValueError – If both subset and maximal_complex are given.

  • TransitionUnreachableError – If either observed pair of the state triplet is impossible under the substrate dynamics.