cms-analysis / CombineHarvester

CMSSW package for the creation, editing and analysis of combine datacards and workspaces
cms-analysis.github.io/CombineHarvester/
15 stars 180 forks source link

CreateAxisHist function #301

Closed miguelgallo closed 1 year ago

miguelgallo commented 1 year ago

The lines 473, 474, 478 and 480 min = float(x) max = float(y) Should be changed to: min = float(x.value) max = float(x.value)

The way it's now it's not working, since x is not a number or a string, it is a ctypes.c_double object.

adewit commented 1 year ago

Thanks for reporting - in case you already made the changes in your local copy, can you make a PR?

miguelgallo commented 1 year ago

You welcome! I'll try doing the PR asap.

adewit commented 1 year ago

Fixed by #302