Skip to content

Commit

Permalink
Fix ordering for replacement
Browse files Browse the repository at this point in the history
the replacement is of ROOT named parameters to be named like pyhf
parameters
  • Loading branch information
matthewfeickert committed Mar 19, 2020
1 parent b6655c7 commit 83f62ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/compare_fitted_nuisance.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def exhaust_argset(s):
pyhf_param = (
param.replace("alpha_", "")
.replace("gamma_stat_", "staterror_")
.replace("lumi", "Lumi")
.replace("Lumi", "lumi")
.replace("_bin", "")
)

Expand Down
3 changes: 1 addition & 2 deletions scripts/compare_nuisance.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def exhaust_argset(s):
pars_root = [
sub.replace("alpha_", "")
.replace("gamma_stat_", "staterror_")
.replace("gamma_stat_", "staterror_")
.replace("lumi", "Lumi")
.replace("Lumi", "lumi")
.replace("_bin", "")
for sub in pars
]
Expand Down

0 comments on commit 83f62ad

Please sign in to comment.