B
    d                 @   sX   d Z e Zdd Ze  ddlmZmZ e dk	rLe ee 7 Z e ee 7 Z dd Z	dS )a  
This package defines deprecated units.

These units are not available in the top-level `astropy.units`
namespace. To use these units, you must import the `astropy.units.deprecated`
module::

    >>> from astropy.units import deprecated
    >>> q = 10. * deprecated.emu  # doctest: +SKIP

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

    >>> from astropy.units import deprecated
    >>> deprecated.enable()  # doctest: +SKIP

c              C   s   ddl m}  ddl m} ddlm}m} |dg| jtdd ||jtdd	 ||j	tdd	 ||j
tdd	 ||jtdd	 d S )
N   )cgs)	astrophys)def_unit_add_prefixesZemuzBiot: CGS (EMU) unit of current)	namespacedocT)r   prefixes) r   r   corer   r   ZBi_nsZjupiterMassZ	earthMassZ
jupiterRadZearthRad)r   r   r   r    r   e/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/astropy/units/deprecated.py_initialize_module   s    r   r   )generate_unit_summary generate_prefixonly_unit_summaryNc              C   s"   ddl m}  ddl}| |tS )a   
    Enable deprecated 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 deprecated
    units only temporarily.
    r   )add_enabled_units    N)r
   r   inspect	getmoduleenable)r   r   r   r   r   r   7   s    
r   )
__doc__globalsr   r   utilsr   Z_generate_unit_summaryr   Z!_generate_prefixonly_unit_summaryr   r   r   r   r   <module>   s   