~maddevelopers/mg5amcnlo/simple_unlops

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_cpp.py

  • Committer: olivier-mattelaer
  • Date: 2021-11-12 09:29:31 UTC
  • mfrom: (967.1.15 3.3.0)
  • Revision ID: olivier-mattelaer-20211112092931-4ec9qfzgxkeovqog
versionĀ 3.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
835
835
            # the same coefficient (up to a sign), put it in front
836
836
            list_fracs = [abs(coefficient[0][1]) for coefficient in coeff_list]
837
837
            common_factor = False
838
 
            diff_fracs = list(set(list_fracs))
 
838
            diff_fracs = misc.make_unique(list_fracs)
839
839
            if len(diff_fracs) == 1 and abs(diff_fracs[0]) != 1:
840
840
                common_factor = True
841
841
                global_factor = diff_fracs[0]
1272
1272
                and final_s_channels[0] != 0:
1273
1273
            singleres = final_s_channels[0]
1274
1274
 
1275
 
        resonance_set = list(set([pid for pid in resonance_set]))
 
1275
        resonance_set = misc.make_unique([pid for pid in resonance_set])
1276
1276
 
1277
1277
        # schannel is True if all diagrams are pure s-channel and there are
1278
1278
        # no QCD vertices