Skip to content

Commit

Permalink
fix: Do not overwrite rwgt weights with weights weights
Browse files Browse the repository at this point in the history
Hotfix for #230
  • Loading branch information
APN-Pucky authored and matthewfeickert committed Mar 20, 2024
1 parent 584c03f commit 00b6dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylhe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def read_lhe_with_attributes(filepath):
read_lhe_init(filepath)
)
for i, w in enumerate(sub.text.split()):
if w:
if w and not index_map[i] in eventdict["weights"]:
eventdict["weights"][index_map[i]] = float(w)
if sub.tag == "rwgt":
for r in sub:
Expand Down

0 comments on commit 00b6dac

Please sign in to comment.