Skip to content

Commit

Permalink
[pptt] BUG FIX madgraph5/madgraph4gpu#337, remove assert(False) - thi…
Browse files Browse the repository at this point in the history
…s fixes uutt but not yet pptt
  • Loading branch information
valassi committed Jan 24, 2022
1 parent d006370 commit 86bc821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ def write_process_cc_file(self, writer):
return out

# AV - replace the export_cpp.OneProcessExporterGPU method (improve formatting? actually keep all defaults!)
# [NB this is used in uu~>tt~ but not in gg>tt~ or e+e->mu+mu-, see issue #337]
@staticmethod
def coeff(ff_number, frac, is_imaginary, Nc_power, Nc_value=3):
"""Returns a nicely formatted string for the coefficients in JAMP lines"""
Expand All @@ -1024,7 +1025,7 @@ def coeff(ff_number, frac, is_imaginary, Nc_power, Nc_value=3):
return '-cxtype(0,1)*' # AV keep default (this is not used in eemumu - should use cI eventually)
else:
return '-' # AV keep default (eg jamp_sv[0] += -amp_sv[0])
assert(False)
###assert(False) # [this had been inserted to check if coeff is used at all, it is used in uu~>tt~, see #337]
res_str = '%+i.' % total_coeff.numerator
if total_coeff.denominator != 1:
# Check if total_coeff is an integer
Expand Down

0 comments on commit 86bc821

Please sign in to comment.