Skip to content

Commit

Permalink
[susy] in CODEGEN attempt a fix for "ValueError : not enough values t…
Browse files Browse the repository at this point in the history
…o unpack (expected 2, got 1)" madgraph5#622

This comes from the following line (a parameter is set conditionally...)
DEBUG:  line =  if ( mdl_Mneu2 < 0 ) [model_handling.py at line 715]
  • Loading branch information
valassi committed Mar 31, 2023
1 parent 4126fd6 commit 7e596e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ def write_hardcoded_parameters(self, params):
parset_pars = []
parset_lines = {}
for line in parset.split('\n'):
###misc.sprint(line) # for debugging
if line.startswith('if'): continue # fix #622
par, parval = line.split(' = ')
if parval.startswith('slha.get_block_entry'): parval = parval.split(',')[2].lstrip(' ').rstrip(');') + ';'
parset_pars.append( par )
Expand Down

0 comments on commit 7e596e4

Please # to comment.