Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Dec 12, 2023
1 parent f50708b commit ea37c56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions analysis/topeft_run2/comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import gzip
import numpy as np
np.seterr(divide='ignore', invalid='ignore')
import awkward as ak
import argparse
import json
from topcoffea.modules.get_param_from_jsons import GetParam
Expand Down Expand Up @@ -97,11 +96,11 @@ def comp(fin1, fin2, hists1, hists2, newHist1, newHist2, tolerance):
'''
for pt in [{}, {'ctW': 1}]:
if newHist1: v1 = h1_syst.eval(pt)[()]

Check warning on line 98 in analysis/topeft_run2/comp.py

View check run for this annotation

Codecov / codecov/patch

analysis/topeft_run2/comp.py#L97-L98

Added lines #L97 - L98 were not covered by tests
else:
else:
h1_syst.set_wilson_coefficients(**pt)
v1 = h1_syst.values(overflow='all')[()]
if newHist2: v2 = h2_syst.eval(pt)[()]

Check warning on line 102 in analysis/topeft_run2/comp.py

View check run for this annotation

Codecov / codecov/patch

analysis/topeft_run2/comp.py#L100-L102

Added lines #L100 - L102 were not covered by tests
else:
else:
h2_syst.set_wilson_coefficients(**pt)
v2 = h2_syst.values(overflow='all')[()]

Check warning on line 105 in analysis/topeft_run2/comp.py

View check run for this annotation

Codecov / codecov/patch

analysis/topeft_run2/comp.py#L104-L105

Added lines #L104 - L105 were not covered by tests
# Rebin old histogram to match new variable binning
Expand Down

0 comments on commit ea37c56

Please sign in to comment.