tudo-astroparticlephysics / PROPOSAL

Monte Carlo Simulation propagating charged Leptons through Media as C++ Library
GNU Lesser General Public License v3.0
35 stars 21 forks source link

Indicate multiple inheritance structure of `crosssection::Photoproduction` classes in pybindings #352

Closed Jean1995 closed 1 year ago

Jean1995 commented 1 year ago

Fixes #351

The Photoproduction parametrizations use a rather complicated inheritance structure, including multiple inheritance. This is due do the fact that some parametrization "borrow" from other parametrizations.

However, this needs to be explicitly mentioned to pybind11, see here. If this is done correctly, all functions calls work correctly.