Commit baa76de4 authored by Manuel Guth's avatar Manuel Guth
Browse files

Merge branch 'maxence-fraction-bug-fix' into 'master'

Fixing CorrectFractions function

See merge request atlas-flavor-tagging-tools/algorithms/umami!253
parents a500bb97 64969060
Pipeline #3254014 passed with stages
in 22 minutes and 20 seconds
......@@ -222,10 +222,10 @@ def CorrectFractions(
target_N_jets_reference_fraction = (
target_N_jets_reference / df["target_N_jets"][0]
)
df.loc[: i - 1, "target_N_jets"] = int(
df.loc[: i - 1, "target_N_jets"] = (
df.loc[: i - 1, "target_N_jets"]
* target_N_jets_reference_fraction
)
).astype(int)
# print some information
df.sort_values("original_order", inplace=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment