Commit ce8b010a authored by Ewelina Maria Lobodzinska's avatar Ewelina Maria Lobodzinska
Browse files

Merge branch 'cherry-pick-3489b821-21.6' into '21.6'

Sweeping !46078 from master to 21.6.
Fix possible bug in modify_param_card

See merge request !46112
parents ec651f9e 1c8a6938
......@@ -2073,7 +2073,11 @@ def modify_param_card(param_card_input=None,param_card_backup=None,process_dir=M
pos = 0 if line.strip().startswith('DECAY') else 1
if blockName=='MASS' and 'MASS' in params:
# Any residual masses to set?
leftOvers = [ x for x in params['MASS'] if x not in doneParams['MASS'] ]
if "MASS" in doneParams:
leftOvers = [ x for x in params['MASS'] if x not in doneParams['MASS'] ]
else:
leftOvers = [ x for x in params['MASS'] ]
for pdg_id in leftOvers:
mglog.warning('Adding mass line for '+str(pdg_id)+' = '+str(params['MASS'][pdg_id])+' which was not in original param card')
newcard.write(' '+str(pdg_id)+' '+str(params['MASS'][pdg_id])+'\n')
......
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment