a
    ߙfb{                     @   s^   d Z e Zdd Ze  ddlmZmZ e durLe ee 7 Z e ee 7 Z d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                  C   s\   ddl m}  ddl m} ddlm}m} ||jtdd ||jtdd ||j	tdd d S )N   )cgs)	astrophys)def_unit_add_prefixesT)	namespaceprefixes)
 r   r   corer   r   ZsolMass_nsZsolRadZsolLum)r   r   r   r    r   ?lib/python3.9/site-packages/astropy/units/required_by_vounit.py_initialize_module   s    r   r   )generate_unit_summary generate_prefixonly_unit_summaryNc                  C   s"   ddl m}  ddl}| |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.
    r   )add_enabled_units    N)r	   r   inspectZ	getmodule_enable)r   r   r   r   r   r   +   s    r   )
__doc__globalsr
   r   Zutilsr   Z_generate_unit_summaryr   Z!_generate_prefixonly_unit_summaryr   r   r   r   r   <module>   s   