B
    q\              ?   @   s  d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddgZi Zi Z	d	d Z
d
d Zx eddfejdfejd dfejd dfejdfejdfejdfejej dfejejd  dfejdfejdfejdfejdfejdfejdfejdfejdfejdfejdfejejd  dfejd ej dfejejd  d fejej ej d!fejejd  ej d"fejej d#fejejd  d$fejejej  d%fejd ej d&fejd' d(fejd)fejd*fejd+fejd,fej d-fej!d.fejej d/fejejd  d0fejej d1fejejd  d2fejejd  d3fej!ej d4fej"d5fej#d6fejej d7fej$ej d8fej$d9fej%d:fej&d;fej'd<fejej d=fej%ejd  d>fej(d?fej)ej* ej+d  ej d@fej,ej ej+d  ej dAfej,ej- ej+d  ej dBfej.dCfej/dDfej/ej dEfej0dFfej1dGfej2dHfej3dIfg>D ]\Z4Z5e
e4e5 qlW dJS )Kz
Defines physical unit names.

This module is not intended for use by user code directly.  Instead,
the physical unit name of a `Unit` can be obtained using its `ptype`
property.
   )core)si)	astrophys)cgs)imperialdef_physical_typeget_physical_typec             C   s:   |   }|tkr&td||t| |t|< |t|< dS )z
    Adds a new physical unit mapping.

    Parameters
    ----------
    unit : `~astropy.units.UnitBase` instance
        The unit to map from.

    name : str
        The physical name of the unit.
    z&{0!r} ({1!r}) already defined as {2!r}N)_get_physical_type_id_physical_unit_mapping
ValueErrorformat_unit_physical_mapping)unitnamer r   5lib/python3.7/site-packages/astropy/units/physical.pyr      s    c             C   s   |   }t|dS )a  
    Given a unit, returns the name of the physical quantity it
    represents.  If it represents an unknown physical quantity,
    ``"unknown"`` is returned.

    Parameters
    ----------
    unit : `~astropy.units.UnitBase` instance
        The unit to lookup

    Returns
    -------
    physical : str
        The name of the physical quantity, or unknown if not
        known.
    unknown)r	   r
   get)r   r   r   r   r   r   0   s    Zdimensionlesslength   Zarea   ZvolumeZtimeZanglezsolid angleZspeedZaccelerationZ	frequencyZmasszamount of substanceZtemperatureZforceZenergyZpressureZpowerzmass densityzspecific volumezmolar volumezmomentum/impulsezangular momentumzangular speedzangular accelerationzdynamic viscosityzkinematic viscosityZ
wavenumberzelectrical currentzelectrical chargezelectrical potentialzelectrical resistancezelectrical conductancezelectrical capacitancezelectrical dipole momentzelectrical current densityzelectrical field strengthzelectrical flux densityzelectrical charge densityZpermittivityzmagnetic fluxzmagnetic flux densityzmagnetic field strengthzelectromagnetic field strengthZ
inductancezluminous intensityzluminous fluxzluminous emittance/illuminancezradiant intensityZ	luminancezspectral flux densityzspectral flux density wavzphoton flux densityzphoton flux density wavzphoton fluxzdata quantityZ	bandwidthzelectrical charge (ESU)zelectrical current (ESU)zelectrical current (EMU)zelectrical charge (EMU)N)6__doc__ r   r   r   r   r   __all__r
   r   r   r   ZUnitmsZradsrZHzgZmolKZdeg_CZdeg_FNJZPaWZkgACVZOhmSFZWbTHZcdZlmZlxZJyZergZangstromcmZphotonZAARbitZFranklinZ
statampereZBiotZ	abcoulombr   r   r   r   r   r   <module>
   s   