(&self, py: Python<'py>, orientation: Option<String>)
| 68 | |
| 69 | #[pyo3(signature = (orientation=None))] |
| 70 | fn normalized_imu<'py>(&self, py: Python<'py>, orientation: Option<String>) -> PyResult<Bound<'py, PyAny>> { |
| 71 | let input = self.input.lock_py_attached(py).unwrap(); |
| 72 | if input.samples.is_none() { return Err(pyo3::exceptions::PyValueError::new_err("No metadata")); } |
| 73 | |
| 74 | let imu_data = util::normalized_imu(&input, orientation)?; |
| 75 | |
| 76 | Ok(pythonize(py, &imu_data)?) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[pymodule] |
nothing calls this directly
no test coverage detected