+
     ]i~  c                   s:    R t ^ RIt^ RIt^ RIHt  ! R R4      tR# )zDuration module.N)_apic                   s  a  ] tR t^	t o RtRR.tR tR tR tR t	R t
R	 tR
 t]P                  ! ]]P                   4      t]P                  ! ]]P$                  4      t]P                  ! ]]P(                  4      t]P                  ! ]]P,                  4      t]P                  ! ]]P0                  4      t]P                  ! ]]P4                  4      tR tR tR t]tR t R t!R t"Rt#V t$R# )DurationzClass Duration in development.ZETZUTCc                sb    \         P                  ! V P                  VR7       Wn        W n        R# )z
Create a new Duration object.

= ERROR CONDITIONS
- If the input frame is not in the allowed list, an error is thrown.

= INPUT VARIABLES
- frame     The frame of the duration.  Must be 'ET' or 'UTC'
- seconds  The number of seconds in the Duration.
)frameN)r    Zcheck_in_listallowed_frame_seconds)selfr   seconds   &&&L/usr/lib64/python3.14/site-packages/matplotlib/testing/jpl_units/Duration.py__init__ZDuration.__init__   s"     	4<<u5    c                    V P                   # )z$Return the frame the duration is in.)r   r      &r	   r   ZDuration.frame   s    {{r   c                sT    \        V P                  \        V P                  4      4      # )z*Return the absolute value of the duration.)r   r   Zabsr   r   r   r	   __abs__ZDuration.__abs__!   s    S%788r   c                sD    \        V P                  V P                  ) 4      # )z+Return the negative value of this Duration.)r   r   r   r   r   r	   __neg__ZDuration.__neg__%   s    dmm^44r   c                r   )z-Return the number of seconds in the Duration.r   r   r   r	   r   ZDuration.seconds)   s    }}r   c                s     V P                   ^ 8g  # )i    r   r   r   r	   __bool__ZDuration.__bool__-   s    }}!!r   c                s`    V P                  VR4       V! V P                  VP                  4      # )zD
Check that *self* and *rhs* share frames; compare them using *op*.
Zcompare)checkSameFramer   )r   Zoprhsr   r	   _cmpZDuration._cmp0   s)     	C+$--..r   c                s    ^ RI Hu Hp \        WP                  4      '       d	   W,           # V P                  VR4       \        V P                  V P                  VP                  ,           4      # )z
Add two Durations.

= ERROR CONDITIONS
- If the input rhs is not in the same frame, an error is thrown.

= INPUT VARIABLES
- rhs     The Duration to add.

= RETURN VALUE
- Returns the sum of ourselves and the input Duration.
NZadd)	Zmatplotlib.testing.jpl_unitsZtestingZ	jpl_unitsZ
isinstanceZEpochr   r   r   r   )r   r   ZUs   && r	   __add__ZDuration.__add__>   sO     	10c77##:C'T]]S\\%ABBr   c                s    V P                  VR4       \        V P                  V P                  VP                  ,
          4      # )z
Subtract two Durations.

= ERROR CONDITIONS
- If the input rhs is not in the same frame, an error is thrown.

= INPUT VARIABLES
- rhs     The Duration to subtract.

= RETURN VALUE
- Returns the difference of ourselves and the input Duration.
Zsub)r   r   r   r   r   r      &&r	   __sub__ZDuration.__sub__T   s2     	C'T]]S\\%ABBr   c                sb    \        V P                  V P                  \        V4      ,          4      # )z
Scale a UnitDbl by a value.

= INPUT VARIABLES
- rhs     The scalar to multiply by.

= RETURN VALUE
- Returns the scaled Duration.
)r   r   r   Zfloatr   r   r	   __mul__ZDuration.__mul__d   s"     T]]U3Z%?@@r   c                s:    V P                   R RV P                   2# )Print the Duration.gZ )r   r   r   r   r	   __str__ZDuration.__str__r   s    --"!DKK=11r   c                s>    RV P                    RV P                  R R2# )r   z
Duration('z', r   Z)r   r   r   r   r	   __repr__ZDuration.__repr__v   s"    DKK=DMM!+<A>>r   c                s    V P                   VP                   8w  d)   \        RV RV P                    RVP                    24      hR# )a  
Check to see if frames are the same.

= ERROR CONDITIONS
- If the frame of the rhs Duration is not the same as our frame,
  an error is thrown.

= INPUT VARIABLES
- rhs     The Duration to check for the same frame
- func    The name of the function doing the check.
zCannot z' Durations with different frames.
LHS: z
RHS: N)r   Z
ValueError)r   r   Zfuncr   r	   r   ZDuration.checkSameFramez   sN     ;;#**$$  } %

|%& & %r   r   N)%Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__r   r
   r   r   r   r   r   r   	functoolsZpartialmethodoperatorZeqZ__eq__ZneZ__ne__ZltZ__lt__ZleZ__le__ZgtZ__gt__ZgeZ__ge__r   r   r   Z__rmul__r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r   	   s     (UmG 95"/ $$T8;;7F$$T8;;7F$$T8;;7F$$T8;;7F$$T8;;7F$$T8;;7FC,C 
A H2?& &r   r   )r    r!   r"   Z
matplotlibr    r   ) r   r	   <module>r#      s       A& A&r   