Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2024
1 parent 3f4350f commit 1402023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions src/HH4b/postprocessing/corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
package_path = Path(__file__).parent.parent.resolve()



def _load_dummy_txbb_sfs(txbb_wps: dict[str:list], pt_bins: dict[str:list]):
"""Create 2D lookup tables in [Txbb, pT] for Txbb SFs from given year"""

txbb_bins = np.array([txbb_wps[wp][0] for wp in txbb_wps] + [1])
pt_fine_bins = np.unique(np.concatenate([pt_bins[wp] for wp in pt_bins]))
edges = (txbb_bins, pt_fine_bins)

txbb_sf = {
"nominal": dense_lookup(1, edges),
"stat_up": dense_lookup(1.1, edges),
Expand All @@ -35,6 +34,7 @@ def _load_dummy_txbb_sfs(txbb_wps: dict[str:list], pt_bins: dict[str:list]):

return txbb_sf


def _load_txbb_sfs(year: str, fname: str, txbb_wps: dict[str:list], pt_bins: dict[str:list]):
"""Create 2D lookup tables in [Txbb, pT] for Txbb SFs from given year"""

Expand Down

0 comments on commit 1402023

Please sign in to comment.