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.
Noneconsiders every mechanism.purviews (iterable, optional) – The purviews to consider.
Noneconsiders every purview.allow_neg (bool, optional) – Keep causal links with negative α.
parallel (bool or None, optional) – Whether to evaluate the mechanisms in parallel.
Nonedefers toconfig.infrastructure.parallel.progress (bool or None, optional) – Whether to show a progress bar.
Nonedefers toconfig.infrastructure.progress_bars.
- Returns:
Account or DirectedAccount – An
Accountfor a bidirectional call over every mechanism and purview, otherwise aDirectedAccount.