Closed andrey-popov closed 3 years ago
It's possible changing the order of the defs here will fix the problem: https://github.com/cms-analysis/CombineHarvester/blob/6af279a33e9b88bfcca4803dfc06cbe05e07a5ae/CombineTools/src/CombineHarvester_Python.cc#L261-L263 But I didn't test it yet. A better solution is probably just to rename one of the functions in the python interface, which we'll address in a PR soon.
I encountered a bug in Python bindings. I'm trying to create a datacard for a shape-based analysis using the Python interface. With the current
master
(6af279a33e9b88bfcca4803dfc06cbe05e07a5ae), runningtriggers a segmentation violation. The code works fine if I create the ROOT file beforehand:
The backtrace to the main
WriteDatacard
method suggest that the problem is in the Python bindings:Note how the call is passed through
Overload3_WriteDatacard
instead ofOverload1_WriteDatacard
. ApparentlyOverload3_WriteDatacard
tries to convert a string into aTFile
. I also see thatfile_
inside it is null. Unfortunately, I don't know enough about the bindings to propose a fix.