Skip to content

Commit

Permalink
Merge pull request #796 from CoffeaTeam/coffea-2023-rc3-pins
Browse files Browse the repository at this point in the history
pins for coffea 2023.4.0rc3
  • Loading branch information
lgray authored Apr 26, 2023
2 parents e45ced5 + b18960f commit 90c7394
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion coffea/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import re

__version__ = "2023.4.0.rc2"
__version__ = "2023.4.0.rc3"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def get_description():


INSTALL_REQUIRES = [
"awkward>=2.1.3",
"awkward>=2.1.4",
"uproot>=5.0.7",
"dask[array]>=2022.12.1,<2023.4.0",
"dask-awkward>=2023.4.1",
"dask-histogram>=2023.4.1",
"dask[array]>=2023.4.0",
"dask-awkward>=2023.4.2",
"dask-histogram>=2023.4.4",
"correctionlib>=2.0.0",
"pyarrow>=6.0.0",
"fsspec",
Expand Down
15 changes: 10 additions & 5 deletions tests/test_jetmet_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def test_corrected_jets_factory():
)

check_resosfs = resosf.getScaleFactor(
JetEta=jets.eta,
JetEta=events.Jet.eta,
).compute()

# Filter out the non-deterministic (no gen pt) jets
Expand All @@ -811,17 +811,22 @@ def smear_factor(jetPt, pt_gen, jersf):

test_gen_pt = ak.concatenate(
[
corrected_jets.pt_gen.compute()[0, :-2],
corrected_jets.pt_gen.compute()[-1, :-1],
dak.fill_none(events.Jet.matched_gen.pt, 0).compute()[0, :-2],
dak.fill_none(events.Jet.matched_gen.pt, 0).compute()[-1, :-1],
]
)
test_raw_pt = ak.concatenate(
[jets.pt_raw.compute()[0, :-2], jets.pt_raw.compute()[-1, :-1]]
[
((1 - events.Jet.rawFactor) * events.Jet.pt).compute()[0, :-2],
((1 - events.Jet.rawFactor) * events.Jet.pt).compute()[-1, :-1],
]
)
test_pt = ak.concatenate(
[corrected_jets.pt.compute()[0, :-2], corrected_jets.pt.compute()[-1, :-1]]
)
test_eta = ak.concatenate([jets.eta.compute()[0, :-2], jets.eta.compute()[-1, :-1]])
test_eta = ak.concatenate(
[events.Jet.eta.compute()[0, :-2], events.Jet.eta.compute()[-1, :-1]]
)
test_jer = ak.concatenate([check_resos[0, :-2], check_resos[-1, :-1]])
test_jer_sf = ak.concatenate(
[
Expand Down

0 comments on commit 90c7394

Please sign in to comment.