"""
Gala.
"""

__author__ = 'adrn <adrianmpw@gmail.com>'

from ._astropy_init import *

# For egg_info test builds to pass, put package imports here.
if not _ASTROPY_SETUP_:
    from . import coordinates
    from . import dynamics
    from . import integrate
    from . import potential
    from . import units
    from . import util
    from . import mpl_style

    # TODO: remove with Astropy v1.3, which supports this

    # Monkey-patch Quantity
    import astropy.units as u

    @classmethod
    def _parse_quantity(cls, q):
        try:
            val,unit = q.split()
        except:
            val = q
            unit = u.dimensionless_unscaled

        return u.Quantity(float(val), unit)
    u.Quantity.from_string = _parse_quantity

    del u

@@ -359,400 +359,4 @@
 yle%0A
-%0A    # TODO: remove with Astropy v1.3, which supports this%0A%0A    # Monkey-patch Quantity%0A    import astropy.units as u%0A%0A    @classmethod%0A    def _parse_quantity(cls, q):%0A        try:%0A            val,unit = q.split()%0A        except:%0A            val = q%0A            unit = u.dimensionless_unscaled%0A%0A        return u.Quantity(float(val), unit)%0A    u.Quantity.from_string = _parse_quantity%0A%0A    del u%0A

remove astropy monkey-patch