jacg / petalo

PET scanner image reconstruction
1 stars 4 forks source link

Use PyO3 to communicate between Rust/Python FOMs calculations. #17

Open jacg opened 2 years ago

jacg commented 2 years ago

Currently, src/foms.py executes src/bin/foms.rs as a subprocess and parses its stdout. It would be preferable to expose the functions in src/fom.rs using PyO3, and call them directly.

We already have an example of PyO3 usage.