σ
ίΘ[c           @` s    d  Z  d d l m Z m Z m Z m Z e   Z d   Z e   d d l	 m
 Z m Z e  d k	 r e  e e    7Z  e  e e    7Z  n  d   Z e   d S(   uO  
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``.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsc          C` s   d d l  m }  d d l  m } d d l m } m } | | j d t d t | | j	 d t d t | | j
 d t d t d  S(   Ni   (   t   cgs(   t	   astrophys(   t   def_unitt   _add_prefixest	   namespacet   prefixes(   t    R   R   t   coreR   R   t   solMasst   _nst   Truet   solRadt   solLum(   R   R   R   R   (    (    s?   lib/python2.7/site-packages/astropy/units/required_by_vounit.pyt   _initialize_module   s    i   (   t   generate_unit_summaryt    generate_prefixonly_unit_summaryc          C` s/   d d l  m }  d d l } |  | j t   S(   uα   
    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.
    i   (   t   add_enabled_unitsi    N(   R   R   t   inspectt	   getmodulet   _enable(   R   R   (    (    s?   lib/python2.7/site-packages/astropy/units/required_by_vounit.pyR   -   s    N(   t   __doc__t
   __future__R    R   R   R   t   globalsR   R   t   utilsR   t   _generate_unit_summaryR   t!   _generate_prefixonly_unit_summaryt   NoneR   (    (    (    s?   lib/python2.7/site-packages/astropy/units/required_by_vounit.pyt   <module>   s   "			