Skip to content

Commit

Permalink
assert conversion to correctionlib
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Jun 11, 2024
1 parent 339b061 commit 3afd586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/egamma_tnp/utils/pileup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def create_correction(pu_data_histogram, pu_mc_array, outfile=None, normalize_pu

ceval = cset.to_evaluator()
corr = ceval["Pileup"]
np.testing.assert_allclose(corr.evaluate(np.arange(100, dtype=float)), (pu_data / pu_mc), err_msg="Pileup correction does not match input data")
return correctionlib_wrapper(corr)


Expand Down

0 comments on commit 3afd586

Please sign in to comment.