Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 3, 2025
1 parent 85ef883 commit 90c41dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pylhe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _indent(elem, level=0):
class LHEInit(dict):
"""Store the <init> block as dict."""

fieldnames = ["initInfo", "procInfo" "weightgroup", "LHEVersion"]
fieldnames = ["initInfo", "procInfoweightgroup", "LHEVersion"]

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down Expand Up @@ -377,9 +377,7 @@ def write(self, output_stream, rwgt=True, weights=False):
"""
Write the LHE file to an output stream.
"""
output_stream.write(
f"<LesHouchesEvents version=\"{self.init['LHEVersion']}\">\n"
)
output_stream.write(f'<LesHouchesEvents version="{self.init["LHEVersion"]}">\n')
output_stream.write(self.init.tolhe() + "\n")
for e in self.events:
output_stream.write(e.tolhe(rwgt=rwgt, weights=weights) + "\n")
Expand Down

0 comments on commit 90c41dc

Please sign in to comment.