pub enum PsfError {
Binning {
r_min: f64,
r_max: f64,
bins: usize,
},
Slab {
lo: f64,
hi: f64,
},
Profile(String),
TooFewBins {
used: usize,
parameters: usize,
},
NoStart,
Singular,
Parameters(String),
}Expand description
Errors of the PSF extraction and fit.
Variants§
Binning
The radial binning is not 0 < r_min < r_max (finite) with bins > 0.
Fields
Slab
The depth slab is not finite with hi > lo.
Profile(String)
A profile’s arrays are inconsistent.
TooFewBins
Fewer usable bins (with a positive error) than parameters plus one.
NoStart
No start with positive amplitudes was found.
Singular
The curvature matrix at the minimum is singular.
Parameters(String)
PSF parameters are not positive and finite, or do not match the model.
Trait Implementations§
Source§impl Error for PsfError
impl Error for PsfError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<PsfError> for ElectronTallyError
impl From<PsfError> for ElectronTallyError
Source§impl From<PsfError> for PsfScanError
impl From<PsfError> for PsfScanError
impl StructuralPartialEq for PsfError
Auto Trait Implementations§
impl Freeze for PsfError
impl RefUnwindSafe for PsfError
impl Send for PsfError
impl Sync for PsfError
impl Unpin for PsfError
impl UnsafeUnpin for PsfError
impl UnwindSafe for PsfError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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