HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyo
�
_�3Lc@sdZddd��YZdS(sDuration module.tDurationcBs�eZdZddgZd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�ZRS(s"Class Duration in development.
   tETtUTCcCsM||jkr7d|t|j�f}t|��n||_||_dS(s#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.
      s9Input frame '%s' is not one of the supported frames of %sN(tallowedtstrt
ValueErrort_framet_seconds(tselftframetsecondstmsg((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__init__s
	cCs|jS(s$Return the frame the duration is in.(R(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyR	*scCst|jt|j��S(s*Return the absolute value of the duration.(RRtabsR(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__abs__/scCst|j|j�S(s+Return the negative value of this Duration.(RRR(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__neg__4scCs|jS(s-Return the number of seconds in the Duration.(R(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyR
9scCs
|jdkS(s�Compare two Durations.

      = INPUT VARIABLES
      - rhs    The Duration to compare against.

      = RETURN VALUE
      - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
      i(R(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__nonzero__>s	cCs#|j|d�t|j|j�S(s#Compare two Durations.

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

      = INPUT VARIABLES
      - rhs    The Duration to compare against.

      = RETURN VALUE
      - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
      tcompare(tcheckSameFrametcmpR(Rtrhs((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__cmp__JscCsVddljj}t||j�r,||S|j|d�t|j|j|j�S(s
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.
      i����Ntadd(	tmatplotlib.testing.jpl_unitsttestingt	jpl_unitst
isinstancetEpochRRRR(RRtU((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__add__Zs

cCs*|j|d�t|j|j|j�S(sSubtract 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.
      tsub(RRRR(RR((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__sub__pscCst|j|jt|��S(s�Scale a UnitDbl by a value.

      = INPUT VARIABLES
      - rhs    The scalar to multiply by.

      = RETURN VALUE
      - Returns the scaled Duration.
      (RRRtfloat(RR((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__mul__�s	cCst|j|jt|��S(s�Scale a Duration by a value.

      = INPUT VARIABLES
      - lhs    The scalar to multiply by.

      = RETURN VALUE
      - Returns the scaled Duration.
      (RRRR (Rtlhs((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__rmul__�s	cCst|j|jt|��S(s�Divide a Duration by a value.

      = INPUT VARIABLES
      - rhs    The scalar to divide by.

      = RETURN VALUE
      - Returns the scaled Duration.
      (RRRR (RR((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__div__�s	cCst|jt|�|j�S(s�Divide a Duration by a value.

      = INPUT VARIABLES
      - rhs    The scalar to divide by.

      = RETURN VALUE
      - Returns the scaled Duration.
      (RRR R(RR((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__rdiv__�s	cCsd|j|jfS(sPrint the Duration.s%g %s(RR(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__str__�scCsd|j|jfS(sPrint the Duration.sDuration( '%s', %g )(RR(R((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt__repr__�scCs>|j|jkr:d||j|jf}t|��ndS(s2Check 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.
      s;Cannot %s Duration's with different frames.
LHS: %s
RHS: %sN(RR(RRtfuncR((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyR�s(t__name__t
__module__t__doc__RRR	RRR
RRRRR!R#R$R%R&R'R(((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyRs$															N((R+R(((sX/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/Duration.pyt<module>s