How to use the astroplan.exceptions.AstroplanWarning function in astroplan

To help you get started, we’ve selected a few astroplan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github astropy / astroplan / astroplan / exceptions.py View on Github external
__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning", "AstroplanWarning"]


class AstroplanWarning(AstropyWarning):
    """Superclass for warnings used by astroplan"""


class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass


class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass


class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass


class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass


class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
github astropy / astroplan / astroplan / exceptions.py View on Github external
class AstroplanWarning(AstropyWarning):
    """Superclass for warnings used by astroplan"""


class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass


class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass


class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass


class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass


class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass
github astropy / astroplan / astroplan / exceptions.py View on Github external
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from astropy.utils.exceptions import AstropyWarning

__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
           "OldEarthOrientationDataWarning", "PlotWarning",
           "PlotBelowHorizonWarning", "AstroplanWarning"]


class AstroplanWarning(AstropyWarning):
    """Superclass for warnings used by astroplan"""


class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass


class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass


class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass


class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
github astropy / astroplan / astroplan / exceptions.py View on Github external
class TargetAlwaysUpWarning(AstroplanWarning):
    """Target is circumpolar"""
    pass


class TargetNeverUpWarning(AstroplanWarning):
    """Target never rises above horizon"""
    pass


class OldEarthOrientationDataWarning(AstroplanWarning):
    """Using old Earth rotation data from IERS"""
    pass


class PlotWarning(AstroplanWarning):
    """Warnings dealing with the plotting aspects of astroplan"""
    pass


class PlotBelowHorizonWarning(PlotWarning):
    """Warning for when something is hidden on a plot because it's below the horizon"""
    pass