a
    ߙfbG                     @   s2  d Z ddlmZmZ ddlmZ e Zedgdej edd edd	gd
e	 edd eddgde
 edd eddgde
 edd eddgde	 edd eg ddej edd eddgde
 edd edd gd!e
d"  ed#d ed$gejd% ed&d ed'ged( ed)d ed*ged" ed+d ed,ged" ed-d eg d.ed/ ed0d ed1d2ged" ed3d ed4d5ged ed6d ed7d8gd9ej ed:d eg d;d<e ed=d ed>d?gd@e edAd edBgdCe edDd edEgdFe edGd eg dHeej edId edJee
 ejdK  edLd edMdNgdOe edPd edQdRgdSej edTd edUdVgdWej edXd eg dYdOe edZd ed[ee	dK  ed\d ed]d^gejd_ ed`d edadbgedcdddedfdg edhdigedjd [[ddklm Z! e dlur&e e!e 7 Z dmdn Z"dlS )oa  
This package defines colloquially used Imperial units.  They 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
   )UnitBasedef_unit)siinchgRQ@zInternational inch)	namespacedocftZfoot   zInternational footZydZyard   zInternational yardmiZmilei  zInternational mileZmilZthougMbP?zThousandth of an inch)nmiZnauticalmileZNMi<  zNautical mileZfurZfurlongi  ZFurlongZacZ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)fozZfluid_ozZfluid_ounce   zU.S. fluid ouncetbspZ
tablespoonzU.S. customary tablespoonZtspZteaspoonzU.S. customary teaspoonozZouncegXzY<@z%International avoirdupois ounce: mass)lbZlbmZpound   z%International avoirdupois pound: massstZstone   z%International avoirdupois stone: massZtoni  z#International avoirdupois ton: masssluggds<G@@z
slug: mass)ZknZktZknotZNMPHz&nautical unit of speed: 1 nmi per hourlbfzPound: forceZkipZ	kilopoundi  zKilopound: forceZBTUZbtugvA3>?zBritish thermal unitcalZcalorieg#~j@z4Thermochemical calorie: pre-SI metric unit of energy)ZkcalZCalZCalorieZkilocalZkilocaloriez)Calorie: colloquial definition of CalorieZpsizPound per square inch: pressureZhpZ
horsepowergjCU?zElectrical horsepowerZdeg_FZ
FahrenheitzDegrees Fahrenheitz{}^{\circ}Fu   °F)ZlatexZunicode)r   r   formatZdeg_RZRankinez:Rankine scale: absolute scale of thermodynamic temperature)generate_unit_summaryNc                  C   s"   ddl m}  ddl}| |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.
    r   )add_enabled_units    N)corer!   inspectZ	getmoduleenable)r!   r$    r&   5lib/python3.9/site-packages/astropy/units/imperial.pyr%      s    
r%   )#__doc__r#   r   r    r   globalsZ_nscmr   r   mZliterr   r   r   r   r   r   gr   r   r   hr   sr   ZkJJr   WZutilsr    Z_generate_unit_summaryr%   r&   r&   r&   r'   <module>   s   
