From e1ba7b76a1ce0cd997b99ff03835c4acb7d72ce5 Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Wed, 13 Mar 2024 15:37:10 +0100 Subject: [PATCH] Fix eta overwrite bug --- menu_tools/utils/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu_tools/utils/objects.py b/menu_tools/utils/objects.py index 840d76d5..5c263c2f 100644 --- a/menu_tools/utils/objects.py +++ b/menu_tools/utils/objects.py @@ -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():