Skip to content

Commit

Permalink
fix: splitlines -> split
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Dec 14, 2023
1 parent b1faad2 commit e9ee613
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 @@ -324,7 +324,7 @@ def read_lhe_with_attributes(filepath):
eventdict["optional"].append(p.strip())
for sub in element:
if sub.tag == "weights":
for i,w in enumerate(sub.text.splitlines()):
for i,w in enumerate(sub.text.split()):
if w:
eventdict["weights"][i] = float(w)
if sub.tag == "rwgt":
Expand Down

0 comments on commit e9ee613

Please sign in to comment.