mwalib 2.0.3

A library to simplify reading Murchison Widefield Array (MWA) raw visibilities, voltages and metadata.
Documentation
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

//! Errors associated with reading in CalibrationFit data.

use thiserror::Error;

/// EfinputError subtypes
#[derive(Error, Debug)]
pub enum CalibrationFitError {
    /// Error when reading in a Rfinput's polarisation.
    #[error(
        "metafits file: HDU: CALIBDATA: Could not find Rfinput for Antenna: {antenna} Pol: {pol}"
    )]
    NoRfInputFoundForCalibdataAntennaPol { antenna: usize, pol: String },

    /// An error derived from `FitsError`.
    #[error("{0}")]
    Fits(#[from] crate::fits_read::error::FitsError),
}