U
    e»{j€  ã                   @   s`   d Z eƒ Zdd„ Zeƒ  ddlmZ ddlmZ e dk	rTe 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   sx   ddl m} 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é   )Ú	astrophysÚcgs)Ú_add_prefixesÚdef_unitZ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   úW/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/units/deprecated.pyÚ_initialize_module   s    r   r   )Ú generate_prefixonly_unit_summary)Úgenerate_unit_summaryNc                  C   s"   ddl } ddlm} ||  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.
    é    Nr   )Úadd_enabled_units)Úinspectr
   r   Ú	getmoduleÚenable)r   r   r   r   r   r   5   s    	r   )
Ú__doc__Úglobalsr   r   Úutilsr   Z!_generate_prefixonly_unit_summaryr   Z_generate_unit_summaryr   r   r   r   r   Ú<module>   s   