diff --git a/src/rt/rtaps.rs b/src/rt/rtaps.rs index 4956af8..f677e0b 100644 --- a/src/rt/rtaps.rs +++ b/src/rt/rtaps.rs @@ -136,6 +136,11 @@ impl RtAps { let mut lck = self.status.lock(); lck.take() } + + /// Reset power spectra estimator, start with a clean sleeve + pub fn reset(&self) { + self.sender.send(RtApsMessage::ResetStatus).unwrap(); + } } impl Drop for RtAps { fn drop(&mut self) { @@ -158,6 +163,11 @@ impl RtAps { } None } + + #[pyo3(name = "reset")] + fn reset_py(&self) { + self.reset() + } } #[cfg(test)] diff --git a/src/siggen.rs b/src/siggen/siggen.rs similarity index 100% rename from src/siggen.rs rename to src/siggen/siggen.rs