Skip to content

Commit 683da4a

Browse files
author
Mori Ludovico
committed
Merge branch 'main' of https://github.com/LPC-HH/boostedhh into dev-plotting-update
update to dev branch
2 parents c544d90 + 489570d commit 683da4a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
--durations=20
5151
5252
- name: Upload coverage report
53-
uses: codecov/[email protected].2
53+
uses: codecov/[email protected].3
5454
with:
5555
token: ${{ secrets.CODECOV_TOKEN }}

src/boostedhh/processors/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def jetid_v12(jets: ak.Array) -> ak.Array:
1818
| (
1919
((np.abs(jets.eta) > 2.7) & (np.abs(jets.eta) <= 3.0))
2020
& jetidtightbit
21-
& (jets.neHEF >= 0.99)
21+
& (jets.neHEF < 0.99)
2222
)
2323
| ((np.abs(jets.eta) > 3.0) & jetidtightbit & (jets.neEmEF < 0.4))
2424
)

src/boostedhh/utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,11 @@ def load_sample(
514514

515515
# find the directory that contains the sample
516516
for sp in sample_path:
517-
spy = sp / year
518-
full_samples_list = listdir(spy) # get all directories in data_dir
519-
load_samples = [str(s) for s in full_samples_list if sample.get_selector(year).match(s)]
517+
spy = Path(sp) / year
518+
full_samples_list = list(spy.iterdir()) # get all directories in data_dir
519+
load_samples = [
520+
s.name for s in full_samples_list if sample.get_selector(year).match(s.name)
521+
]
520522
if len(load_samples):
521523
sample_path = spy
522524
break

0 commit comments

Comments
 (0)