
    IR-e                        d Z ddlmZ ddlmZmZ  e            Z edgdej        z  ed            edd	gd
e	z  ed            eddgde
z  ed            eddgde
z  ed            eddgde	z  ed            eg ddej        z  ed            eddgde
z  ed            edd gd!e
d"z  z  ed#            ed$gej        d%z  ed&            ed'ged(z  ed)            ed*ged"z  ed+            ed,ged"z  ed-            eg d.ed/z  ed0            ed1d2ged"z  ed3            ed4d5gedz  ed6            ed7d8gd9ej        z  ed:            eg d;d<ez  ed=            ed>d?gd@ez  edA            edBgdCez  edD            edEgdFez  edG            eg dHeej        z  edI            edJee
z  ej        dKz  z  edL            edMdNgdOez  edP            edQdRgdSej        z  edT            edUdVgdWej        z  edX            eg dYdOez  edZ            ed[ee	dKz  z  ed\            ed]d^gej        d_z  ed`            edadbgedcdddedfg            edhdigedj           [[e ddllm Z! e  e! e                      z  Z dm Z"dkS )na  Colloquially used Imperial units.

These units are available in the `astropy.units.imperial` namespace, but not in the
top-level `astropy.units` namespace, e.g.::

    >>> import astropy.units as u
    >>> mph = u.imperial.mile / u.hour
    >>> mph
    Unit("mi / h")

To include them in `~astropy.units.UnitBase.compose` and the results of
`~astropy.units.UnitBase.find_equivalent_units`, do::

    >>> import astropy.units as u
    >>> u.imperial.enable()  # doctest: +SKIP
   )si)UnitBasedef_unitinchgRQ@zInternational inch)	namespacedocftfoot   zInternational footydyard   zInternational yardmimilei  zInternational milemilthougMbP?zThousandth of an inch)nminauticalmileNMi<  zNautical milefurfurlongi  Furlongacacrei(     zInternational acregallong1?zU.S. liquid gallonquart   zU.S. liquid quartpintzU.S. liquid pintcupzU.S. customary cup)fozfluid_ozfluid_ounce   zU.S. fluid ouncetbsp
tablespoonzU.S. customary tablespoontspteaspoonzU.S. customary teaspoonozouncegXzY<@z%International avoirdupois ounce: mass)lblbmpound   z%International avoirdupois pound: massststone   z%International avoirdupois stone: masstoni  z#International avoirdupois ton: masssluggds<G@@z
slug: mass)knktknotNMPHz&nautical unit of speed: 1 nmi per hourlbfzPound: forcekip	kilopoundi  zKilopound: forceBTUbtugvA3>?zBritish thermal unitcalcalorieg#~j@z4Thermochemical calorie: pre-SI metric unit of energy)kcalCalCaloriekilocalkilocaloriez)Calorie: colloquial definition of CaloriepsizPound per square inch: pressurehp
horsepowergjCU?zElectrical horsepowerdeg_F
FahrenheitzDegrees Fahrenheitz{}^{\circ}Fu   °F)latexunicode)r   r   formatdeg_RRankinez:Rankine scale: absolute scale of thermodynamic temperatureN)generate_unit_summaryc                  \    ddl } ddlm}  ||                     t                              S )z
    Enable Imperial units so they appear in results of
    `~astropy.units.UnitBase.find_equivalent_units` and
    `~astropy.units.UnitBase.compose`.

    This may be used with the ``with`` statement to enable Imperial
    units only temporarily.
        Nr   )add_enabled_units)inspectcorerR   	getmoduleenable)rS   rR   s     6lib/python3.11/site-packages/astropy/units/imperial.pyrV   rV      s>     NNN''''''W..v66777    )#__doc__ r   rT   r   r   globals_nscmr   r	   mliterr   r   r   r    r!   r%   gr)   r+   r   hr3   sr8   kJJr>   WutilsrO   _generate_unit_summaryrV    rX   rW   <module>ri      sN   $       $ $ $ $ $ $ $ $gii
 	&4"%<34H I I I I $dc7K L L L L $R34H I I I I $c7K L L L L %%$,#;R S S S S 	&	&	&rts X X X X %	S2X) D D D D 	$Q#;O P P P P 	(RX+s@T U U U U 'FQJ#3F G G G G &5191C D D D D %$(c/C D D D D &&&a3DV    	\C!Gs8S    	%	dQh#;T U U U U 		7O24/	    	G/	    		7OR"W1X    	%$)s0U V V V V &9r>Sl C C C C 	   "$J0	    	r	BD"H$ H H H H %	tczS>P Q Q Q Q 	%be+s@V W W W W 
I	BDL>	    	8883J3	    	dBh#3T U U U U 		<D=	    	l#66	    	iD      GFFFFF%%ggii000G8 8 8 8 8rX   