pyphi.direction.Direction#
- class pyphi.direction.Direction(*values)[source]#
Bases:
IntEnumConstant that parametrizes cause and effect methods.
Accessed using
Direction.CAUSEandDirection.EFFECT, etc.- order(mechanism, purview)[source]#
Order the mechanism and purview in time.
For
CAUSEthe purview lies one step earlier than the mechanism: the purview is at t − 1 and the mechanism at t. ForEFFECTthe purview lies one step later: the mechanism is at t and the purview at t + 1.- Parameters:
- Returns:
tuple[tuple[int, …], tuple[int, …]] – The pair ordered from earlier to later in time:
(purview, mechanism)forCAUSEand(mechanism, purview)forEFFECT.- Raises:
ValueError – If the direction is neither
CAUSEnorEFFECT(for exampleBIDIRECTIONAL).- Return type: