U
    e»{jB  ã                   @   sf   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	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   sL   ddl m}  ddlm} || jtdd� || jtdd� || jtdd� d S )Né   )Ú	astrophys)Ú_add_prefixesT)Ú	namespaceÚprefixes)Ú r   Úcorer   ZsolMassÚ_nsZsolRadZsolLum)r   r   © r	   ú_/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/units/required_by_vounit.pyÚ_initialize_module   s
    r   r   )Ú generate_prefixonly_unit_summary)Úgenerate_unit_summaryNc                  C   s"   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   r	   r	   r
   r   *   s    	r   )
Ú__doc__Úglobalsr   r   Úutilsr   Z!_generate_prefixonly_unit_summaryr   Z_generate_unit_summaryr   r	   r	   r	   r
   Ú<module>   s   
