-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[skip-ci][tutorials] refactor roofit tutorial #20258
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
Conversation
|
@guitargeek I vaguely remember some Pythonizations in RooFit that converted strings with the same name as ROOT constants to the actual constant value to allow for situations similar to the one of this tutorial. Maybe this particular overload is not Pythonized? I could also be misremembering. |
vepadulano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! While we understand the situation of the Pythonizations better I leave two very minor comments.
guitargeek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! I'd just suggest so refactor the tutorial such that we don't rely on Pythons variable scoping.
This looks like a bug in the implicit conversion of So we can merge this PR to make things work, but also open a GitHub issue about this and revert the change once the string version works again (probably with the cppyy update by @Vipul-Cariappa and @aaronj0). I will investigate and open such an issue. |
|
Ok, it has nothing to do with cppyy, I just didn't know that two implicit conversions at once are not allowed in C++ 🙂 So this can be fixed on the C++ side: #20271 Let's see how the CI responds to that PR, but if it works In don't think we need to change from Thanks a lot for catching this in any case |
|
Sure, then I'll wait for the status of that PR before changing this one |
guitargeek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
81233b5 to
ea85f97
Compare
This failure appeared when testing the python wheels in #19600: