laddu 0.20.0

Amplitude analysis tools for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use pyo3::{PyErr, create_exception, exceptions::PyException};

create_exception!(
    laddu,
    LadduError,
    PyException,
    "Base exception raised by laddu's Python API."
);

pub(crate) fn to_py_err(error: impl std::fmt::Display) -> PyErr {
    LadduError::new_err(error.to_string())
}