Skip to content

Commit

Permalink
Merge pull request #802 from cms-analysis/combinerates
Browse files Browse the repository at this point in the history
Fix rateParam bug in combineCards from py3 port
  • Loading branch information
nsmith- authored Dec 7, 2022
2 parents ea3dc9c + df94363 commit 7454abd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/combineCards.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,8 @@ def compareParamSystLines(a, b):
print("%-12s flatParam" % pname)
for tbin, tproc, params in rateParamsPerCard:
for param in params:
print("%-12s rateParam %s" % (param[0][0], tbin + " " + tproc), end=" ")
for p in param[0][1:-1]:
print(p, end=" ")
print(param[1], end=" ")
print("\n", end=" ")
print("%-12s rateParam %s %s %s" % (param[0][0], tbin + " " + tproc, " ".join(param[0][1:-1]), param[1]))
# param[0][-1] is parameter type, see DatacardParser:addRateParam()
for dname in six.iterkeys(discreteNuisances):
print("%-12s discrete" % dname)
for ext in six.iterkeys(extArgs):
Expand Down

0 comments on commit 7454abd

Please sign in to comment.