
    IR-e                         d Z  e            Zd Z e             e 8ddlmZ ddlmZ e  e e                      z  Z e  e e                      z  Z 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                     ddl m} m} ddlm}m}  |dg|j        t          d            || j        t          d            || j	        t          d            || j
        t          d            || j        t          d           d S )	N   )	astrophyscgs)_add_prefixesdef_unitemuzBiot: CGS (EMU) unit of current)	namespacedocT)r	   prefixes) r   r   corer   r   Bi_nsjupiterMass	earthMass
jupiterRadearthRad)r   r   r   r   s       8lib/python3.11/site-packages/astropy/units/deprecated.py_initialize_moduler      s            --------HeWcf1RSSSS M)'3FFFFM)%tDDDDM)&#EEEEM)$dCCCCCC    Nr   ) generate_prefixonly_unit_summary)generate_unit_summaryc                  \    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   s     r   r   r   7   s@     NNN ('''''W..v66777r   )
__doc__globalsr   r   utilsr   !_generate_prefixonly_unit_summaryr   _generate_unit_summaryr    r   r   <module>r%      s    $ giiD D D            GFFFFF%%ggii000G00;;;G8 8 8 8 8r   