-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[RF] Pythonisations for RooFit #7217
Comments
Hi, I am new to root and trying to wrap my head around some of its features. I thought a good place to start would be to work on this issue. I started by pythonizing Cheers |
Hi @hcmidt, I'm not working on RF, any more, but it's great to see someone offering help! Regarding tests, see here: In this folder, you have all the tests for the Pythonisations. If you have something, include a test here (I guess it makes sense to create a new file for |
PS: And here the corresponding pythonisation: |
Thanks @hageboeck, the pull request is now open. |
To collect some info in this issue, here is the link to an interesting post in the forum that shows an example for why pythonization of the RooDataSet is really needed: |
Another Pythonization idea that occured to me in the PR reviews: implement So instead of doing this: l = ROOT.RooArgList()
l.add(x)
l.add(y) One can also do this, just like with Python lists: l = ROOT.RooArgList()
l += [x, y] |
Would it be also interesting to implement |
The pythonizations suggested in this issue have been implemented, so it can be closed. For any further specific RooFit pythonization ideas, please open a new issue or a PR directly. The Pythonization of RooArgLists that I suggested before is not so useful after all, because now that RooArgLists can be replaced by Python lists to begin with it would be redundant to reimplement the list behavior. |
Reopened, because there are new ideas for Pythonizations mentioned in this comment: To quote that comment:
The third one is now implemented in #11500, which also got backported to 6.26.08 |
Another idea we discussed in the RooFit developers meeting: often a |
The remaining Pythonization suggestions in my last two posts were either implemented or deemed not relevant enough to do so. I'll re-close this issue. |
Many C++-like workflows in RooFit can be beautified on the Python side.
Currently:
Propose:
Overall, this is not difficult once one figures this out for the first function. Good for e.g. a summer student project. A few candidates that could be pythonised:
The text was updated successfully, but these errors were encountered: