SiLab-Bonn / beam_telescope_analysis

Beam Telescope Analysis (BTA) is a testbeam analysis software written in Python (and C++)
MIT License
5 stars 1 forks source link

Remove CPP code in favor of numba #27

Open cbespin opened 1 year ago

cbespin commented 1 year ago

Browsing the code, I noticed usage of Cython functions for histogramming and array operations. Maybe those can be ported to numba to remove the cython/cpp dependency, making this project pure python. If this is considered useful, I am willing to do a speed comparison and provide a PR when I find the time.

leloup314 commented 1 year ago

Sounds nice to me ;) Maybe you have the time to look at the pylandau numba port (which is essential done) and check if this is fine? This uses AOT instead of a (probably) faster JIT approach

cbespin commented 1 year ago

Yes, I will (come time). The same can probably applied here, if it proves as an advantage.

YannickDieter commented 1 year ago

I like the idea. :)