Skip to content
Snippets Groups Projects
Commit 082695bd authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'averbyts-main-patch-62582' into 'main'

Update lhe_nominal_weight_updater.py -- explicitly cast to 'str'

See merge request atlas/athena!72845
parents ef23c0fc b1196ecc
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ def lhe_nominal_weight_updater(powheg_LHE_output): ...@@ -43,7 +43,7 @@ def lhe_nominal_weight_updater(powheg_LHE_output):
# first modify the header, to add the additional weight # first modify the header, to add the additional weight
header_old_str = LHE.header_block(powheg_LHE_output) header_old_str = LHE.header_block(powheg_LHE_output)
header_new = LHE.add_weight_to_header(header_old_str, weightgroup_name_for_old_XWGTUP_value, weight_name_for_old_XWGTUP_value, wgtid_for_old_XWGTUP_value) header_new = LHE.add_weight_to_header(header_old_str, weightgroup_name_for_old_XWGTUP_value, weight_name_for_old_XWGTUP_value, wgtid_for_old_XWGTUP_value)
header_new_str = ElementTree.tostring(header_new).replace("\"", "\'").strip() + "\n" header_new_str = str(ElementTree.tostring(header_new)).replace("\"", "\'").strip() + "\n"
# some complicated loop to restore order of original lines # some complicated loop to restore order of original lines
header_lines = [] header_lines = []
for l in header_new_str.splitlines(): for l in header_new_str.splitlines():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment