
    ph,                     *    S r SSKJr   " S S\5      rg)z
Causal directions.
    )Enumc                   F    \ rS rSrSrSrSrSrS rS r	\
S 5       rS	 rS
rg)	Direction   zxConstant that parametrizes cause and effect methods.

Accessed using ``Direction.CAUSE`` and ``Direction.EFFECT``, etc.
r         c                     U R                   $ )Nnameselfs    I/home/james-whalen/.local/lib/python3.13/site-packages/pyphi/direction.py__str__Direction.__str__   s    yy    c                     SU R                   0$ N	directionr
   r   s    r   to_jsonDirection.to_json   s    TYY''r   c                     XS      $ r    )clsdcts     r   	from_jsonDirection.from_json   s    {#$$r   c                     U [         R                  L a  X!4$ U [         R                  L a  X4$ SSKJn  UR                  U 5      $ )zOrder the mechanism and purview in time.

If the direction is ``CAUSE``, then the purview is at |t-1| and the
mechanism is at time |t|. If the direction is ``EFFECT``, then the
mechanism is at time |t| and the purview is at |t+1|.
r   )validate)r   CAUSEEFFECT r   r   )r   	mechanismpurviewr   s       r   orderDirection.order   sD     9??"%%Y%%%%%!!$''r   r   N)__name__
__module____qualname____firstlineno____doc__r   r    BIDIRECTIONALr   r   classmethodr   r$   __static_attributes__r   r   r   r   r      s;     EFM( % %(r   r   N)r*   enumr   r   r   r   r   <module>r/      s   
  (  (r   