Source code for punchbowl.exceptions

[docs] class PUNCHBowlError(Exception): """Base class for exceptions in punchbowl."""
[docs] class InvalidDataError(PUNCHBowlError): """Invalid data error."""
[docs] class InvalidHeaderError(PUNCHBowlError): """Header is not properly formatted."""
[docs] class MissingMetadataError(PUNCHBowlError): """Metadata missing for processing."""
[docs] class IncorrectFileCountError(PUNCHBowlError): """Wrong number of files passed in."""
[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 ExtraMetadataWarning(PUNCHBowlWarning): """Extra metadata found but ignored."""
[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."""