pyphi.actual.events#
- pyphi.actual.events(substrate, previous_state, current_state, next_state, *, subset=None, mechanisms=None)[source]#
Find all events (mechanisms with actual causes and actual effects).
- Parameters:
substrate (Substrate) – The substrate to analyze.
previous_state (tuple[int]) – The states of the substrate at
t - 1,tandt + 1.current_state (tuple[int]) – The states of the substrate at
t - 1,tandt + 1.next_state (tuple[int]) – The states of the substrate at
t - 1,tandt + 1.subset (optional) – The units, by index or label, whose transitions are analyzed.
Noneuses the whole substrate.mechanisms (iterable, optional) – The mechanisms to consider.
Noneconsiders every mechanism oversubset.
- Returns:
tuple[Event] – The events, ordered by mechanism.
- Raises:
TransitionUnreachableError – If either observed pair of the state triplet (
previous_state→current_stateorcurrent_state→next_state) is impossible under the substrate dynamics.