Enum mwalib::GpuboxError
source · pub enum GpuboxError {
Show 22 variants
InvalidTimeStepIndex(usize),
InvalidCoarseChanIndex(usize),
NoGpuboxes,
Mixture,
Unrecognised(String),
MissingObsid(String),
ObsidMismatch {
obsid: u32,
gpubox_filename: String,
gpubox_obsid: u32,
},
CorrVerMismatch {
gpubox_filename: String,
gpu_corr_version_value: u8,
},
NoDataHDUsInGpuboxFile {
gpubox_filename: String,
},
MwaxCorrVerMissing(String),
MwaxCorrVerMismatch(String),
UnequalHduSizes,
BatchMissing {
expected: usize,
got: usize,
},
UnevenCountInBatches {
expected: u8,
got: u8,
},
EmptyBTreeMap,
LegacyNaxis1Mismatch {
naxis1: usize,
calculated_naxis1: i32,
metafits_baselines: usize,
visibility_pols: usize,
naxis2: usize,
},
LegacyNaxis2Mismatch {
naxis2: usize,
calculated_naxis2: i32,
metafits_fine_chans_per_coarse: usize,
},
MwaxNaxis1Mismatch {
naxis1: usize,
calculated_naxis1: i32,
metafits_fine_chans_per_coarse: usize,
visibility_pols: usize,
naxis2: usize,
},
MwaxNaxis2Mismatch {
naxis2: usize,
calculated_naxis2: i32,
metafits_baselines: usize,
},
InvalidMwaVersion {
mwa_version: MWAVersion,
},
NoDataForTimeStepCoarseChannel {
timestep_index: usize,
coarse_chan_index: usize,
},
Fits(FitsError),
}
Expand description
GpuboxError subtypes - mainly used by CorrelatorContext
Variants§
InvalidTimeStepIndex(usize)
InvalidCoarseChanIndex(usize)
NoGpuboxes
Mixture
Unrecognised(String)
MissingObsid(String)
ObsidMismatch
CorrVerMismatch
NoDataHDUsInGpuboxFile
MwaxCorrVerMissing(String)
MwaxCorrVerMismatch(String)
UnequalHduSizes
BatchMissing
UnevenCountInBatches
EmptyBTreeMap
LegacyNaxis1Mismatch
Fields
LegacyNaxis2Mismatch
MwaxNaxis1Mismatch
Fields
MwaxNaxis2Mismatch
InvalidMwaVersion
Fields
§
mwa_version: MWAVersion
NoDataForTimeStepCoarseChannel
Fits(FitsError)
An error derived from FitsError
.
Trait Implementations§
source§impl Debug for GpuboxError
impl Debug for GpuboxError
source§impl Display for GpuboxError
impl Display for GpuboxError
source§impl Error for GpuboxError
impl Error for GpuboxError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FitsError> for GpuboxError
impl From<FitsError> for GpuboxError
source§impl From<GpuboxError> for MwalibError
impl From<GpuboxError> for MwalibError
source§fn from(source: GpuboxError) -> Self
fn from(source: GpuboxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GpuboxError
impl !RefUnwindSafe for GpuboxError
impl Send for GpuboxError
impl Sync for GpuboxError
impl Unpin for GpuboxError
impl !UnwindSafe for GpuboxError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more