Skip to content

Commit

Permalink
Fix eta overwrite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
artlbv committed Mar 13, 2024
1 parent 4b9a686 commit e1ba7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu_tools/utils/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def compute_selection_mask_for_object_cuts(obj: Object, ak_array: ak.Array) -> a
return sel

## add fake eta
if "eta" not in ak_array["eta"].fields:
if "eta" not in ak_array.fields:
ak_array["eta"] = 0

for range_i, range_cuts in obj.cuts.items():
Expand Down

0 comments on commit e1ba7b7

Please sign in to comment.