- finalized modal analysis
- Cayley transform for rotated gaussians - all python objects now picklable
This commit is contained in:
1 parent
94e4bd3eb6
commit
b3c7bf1461
15 files changed
+989
-314
No files matched your search
@@ -4,6 +4,10 @@ pub enum Error {
|
||||
SingularMatrix,
|
||||
#[error("maximum iterations reached: {0}")]
|
||||
MaxIterations(usize),
|
||||
#[error("fit landed outside fit window")]
|
||||
OutsideFitWindow,
|
||||
#[error("uninitialized field: {0}")]
|
||||
UninitializedField(String),
|
||||
|
||||
#[error(transparent)]
|
||||
ParseError(#[from] strum::ParseError),
|
||||
@@ -11,6 +15,12 @@ pub enum Error {
|
||||
ShapeError(#[from] ndarray::ShapeError),
|
||||
}
|
||||
|
||||
impl From<derive_builder::UninitializedFieldError> for Error {
|
||||
fn from(value: derive_builder::UninitializedFieldError) -> Self {
|
||||
Self::UninitializedField(value.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
impl Error {
|
||||
/// the name of the error variant as a static string
|
||||
pub fn variant_name(&self) -> &'static str {
|
||||
|
||||
Reference in new issue
Block a user