
    IR-ec                         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	 e	             dS )aO  
This package defines SI prefixed units that are required by the VOUnit standard
but that are rarely used in practice and liable to lead to confusion (such as
``msolMass`` for milli-solar mass). They are in a separate module from
`astropy.units.deprecated` because they need to be enabled by default for
`astropy.units` to parse compliant VOUnit strings. As a result, e.g.,
``Unit('msolMass')`` will just work, but to access the unit directly, use
``astropy.units.required_by_vounit.msolMass`` instead of the more typical idiom
possible for the non-prefixed unit, ``astropy.units.solMass``.
c                      ddl m}  ddlm}  || j        t
          d            || j        t
          d            || j        t
          d           d S )N   )	astrophys)_add_prefixesT)	namespaceprefixes) r   corer   solMass_nssolRadsolLum)r   r   s     @lib/python3.11/site-packages/astropy/units/required_by_vounit.py_initialize_moduler      sz    ######M)#sTBBBBM)"cDAAAAM)"cDAAAAAA    Nr   ) generate_prefixonly_unit_summary)generate_unit_summaryc                  \    ddl } ddlm}  ||                     t                              S )z
    Enable the VOUnit-required extra units so they appear in results of
    `~astropy.units.UnitBase.find_equivalent_units` and
    `~astropy.units.UnitBase.compose`, and are recognized in the ``Unit('...')``
    idiom.
        Nr   )add_enabled_units)inspectr	   r   	getmodule_enable)r   r   s     r   r   r   ,   s>     NNN''''''W..w77888r   )
__doc__globalsr   r   utilsr   !_generate_prefixonly_unit_summaryr   _generate_unit_summaryr    r   r   <module>r      s   	 	 giiB B B            GFFFFF%%ggii000G00;;;G9 9 9$ 					r   