Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Dec 9, 2024
1 parent 4057097 commit 9e58f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boostedhh/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def make_vector(events: pd.DataFrame, name: str, mask=None, mstring="Mass"):
"""
import vector

if get_feat(events, f"{name}Pt"):
if get_feat(events, f"{name}Pt") is None:
raise KeyError(f"Could not find {name}Pt in events")

if mask is None:
Expand Down

0 comments on commit 9e58f7a

Please sign in to comment.