From 86bc821dd6f7ddcc9161101aadabeab721bfb6f5 Mon Sep 17 00:00:00 2001 From: Andrea Valassi Date: Mon, 24 Jan 2022 08:35:32 +0100 Subject: [PATCH] [pptt] BUG FIX madgraph5/madgraph4gpu#337, remove assert(False) - this fixes uutt but not yet pptt --- model_handling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model_handling.py b/model_handling.py index 9ee7ad6..4212b0f 100644 --- a/model_handling.py +++ b/model_handling.py @@ -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""" @@ -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