Improved error handling

Significantly improved error handling. Rather than panicking and
crashing we should be propagating all errors up to python that
reasonably can be. This should make the library significantly easier to
call from python in future.
This commit is contained in:
2024-05-08 17:05:28 +01:00
parent 9daf90dffd
commit 9e0cb250c9
3 changed files with 87 additions and 30 deletions

View File

@@ -16,6 +16,7 @@ ndarray-csv = "*"
numpy = "*"
pyo3 = { version = "0.18.1", features = ["extension-module"] }
rayon = "*"
thiserror = "1.0.60"
[dev-dependencies]
anyhow = "1.0.83"