combined lib/cli

This commit is contained in:
randogoth 2024-04-09 08:35:31 +03:00
parent 92c862bd4c
commit 448be74887
4 changed files with 128 additions and 21 deletions

View file

@ -34,7 +34,7 @@ impl Anomaly {
}
#[pyclass]
struct Lyagushka {
pub struct Lyagushka {
dataset: Vec<i32>,
anomalies: Vec<Anomaly>,
}
@ -154,7 +154,7 @@ impl Lyagushka {
}
#[pymodule]
fn pyagushka(_py: Python, m: &PyModule) -> PyResult<()> {
fn lyagushka(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_class::<Lyagushka>()?;
Ok(())
}