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 coarse channels.

use thiserror::Error;

/// CoarseChannelError subtypes
#[derive(Error, Debug)]
pub enum CoarseChannelError {
    #[error("No gpubox or voltage time_map supplied")]
    NoGpuboxOrVoltageTimeMapSupplied,
    #[error("Gpubox AND voltage time_map supplied, which is not valid")]
    BothGpuboxAndVoltageTimeMapSupplied,
    #[error("Invalid MWA Version - 0 Unknown not allowed here")]
    InvalidMWAVersionUnknown,

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