Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python interface for the propagator engine #428

Open
nadrino opened this issue Dec 5, 2023 · 3 comments
Open

Python interface for the propagator engine #428

nadrino opened this issue Dec 5, 2023 · 3 comments
Assignees

Comments

@nadrino
Copy link
Collaborator

nadrino commented Dec 5, 2023

As many people use Python nowadays, having a python module that would load the GUNDAM engine within its core.

A possible implementation would be: https://www.matecdev.com/posts/cpp-call-from-python.html

Such a tool might be developped in an experimental branch of GUNDAM

@nadrino nadrino added the feature/enhancement ✨ New feature or request label Dec 5, 2023
@nadrino nadrino self-assigned this Dec 5, 2023
@ClarkMcGrew
Copy link
Contributor

A good option would be to "declare" the gundam classes to ROOT since that will make the classes available to python. It probably requires refactoring some of the top level classes though.

@nadrino
Copy link
Collaborator Author

nadrino commented Dec 5, 2023

I guess this would mean inheritance addition to each GUNDAM class right? This I would like NOT to do 😅

@nadrino nadrino added experimental 🔬 and removed feature/enhancement ✨ New feature or request labels Dec 5, 2023
@ClarkMcGrew
Copy link
Contributor

As far as I know, that hasn't been necessary for a long time. The class needs to be "in a shared library" and you need to build a dictionary (also part of the shared library), but there are basically no changes needed for the class. Using the class for I/O requires a little more finess, and a bare class won't show up in the browser (AFAIK), but it should be usable from python (and ROOT macro files).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants