pyphi.actual.account#

pyphi.actual.account(transition, direction=BIDIRECTIONAL, *, mechanisms=None, purviews=None, allow_neg=False, parallel=None, progress=None)[source]#

Return the set of all causal links for a Transition.

Dispatches through the active actual-causation formalism (config.formalism.actual_causation.version).

Parameters:
  • transition (Transition) – The transition to account for.

  • direction (Direction, optional) – Cause, effect, or both (the default).

  • mechanisms (iterable, optional) – The mechanisms to consider. None considers every mechanism.

  • purviews (iterable, optional) – The purviews to consider. None considers every purview.

  • allow_neg (bool, optional) – Keep causal links with negative α.

  • parallel (bool or None, optional) – Whether to evaluate the mechanisms in parallel. None defers to config.infrastructure.parallel.

  • progress (bool or None, optional) – Whether to show a progress bar. None defers to config.infrastructure.progress_bars.

Returns:

Account or DirectedAccount – An Account for a bidirectional call over every mechanism and purview, otherwise a DirectedAccount.