1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
"""
This module contains errors/exceptions and warnings for astroML.
"""
from astropy.utils.exceptions import AstropyWarning
class AstroMLWarning(AstropyWarning):
"""
A base warning class from which all AstroML warnings should inherit.
This class is subclassed from AstropyWarnings, so warnings inherited by
this class is handled by the Astropy logger.
"""
class AstroMLDeprecationWarning(AstroMLWarning):
"""
A warning class to indicate a deprecated feature in astroML.
"""
|