Source code for punchbowl.exceptions
[docs]
class PUNCHBowlError(Exception):
"""Base class for exceptions in punchbowl."""
[docs]
class InvalidDataError(PUNCHBowlError):
"""Invalid data error."""
[docs]
class IncorrectFileCountError(PUNCHBowlError):
"""Wrong number of files passed in."""
[docs]
class IncorrectPolarizationStateError(PUNCHBowlError):
"""Mismatched polarization state detected but ignored."""
[docs]
class IncorrectTelescopeError(PUNCHBowlError):
"""Mismatched telescope detected but ignored."""
[docs]
class PUNCHBowlWarning(Warning):
"""Base class for warnings in punchbowl."""
[docs]
class LargeTimeDeltaWarning(PUNCHBowlWarning):
"""Large time delta warning between datasets."""
[docs]
class NoCalibrationDataWarning(PUNCHBowlWarning):
"""Calibration skipped no valid calibration data available."""
[docs]
class IncorrectPolarizationStateWarning(PUNCHBowlWarning):
"""Mismatched polarization state detected but ignored."""
[docs]
class IncorrectTelescopeWarning(PUNCHBowlWarning):
"""Mismatched telescope detected but ignored."""
[docs]
class DataValueWarning(PUNCHBowlWarning):
"""Data values may exceed expected values."""
[docs]
class MissingTimezoneWarning(PUNCHBowlWarning):
"""Timezone problems."""
[docs]
class CantInterpolateWarning(PUNCHBowlWarning):
"""Values to interpolate between are identical."""