~maddevelopers/mg5amcnlo/3.3.0

« back to all changes in this revision

Viewing changes to madgraph/core/helas_objects.py

  • Committer: olivier-mattelaer
  • Date: 2021-11-08 08:25:41 UTC
  • Revision ID: olivier-mattelaer-20211108082541-nivc1i4l164z6y5u
merge with 2.7.0_gpu version 368->371: fixing randomness in ordering

Show diffs side-by-side

added added

removed removed

Lines of Context:
5632
5632
        for me in self.get('matrix_elements'):
5633
5633
            helas_list.extend(me.get_used_lorentz())
5634
5634
                
5635
 
        return list(set(helas_list))
 
5635
        return misc.make_unique(helas_list)
5636
5636
 
5637
5637
    def get_used_couplings(self):
5638
5638
        """Return a list with all couplings used by this
5643
5643
        for me in self.get('matrix_elements'):
5644
5644
            coupling_list.extend([c for l in me.get_used_couplings() for c in l])
5645
5645
        
5646
 
        return list(set(coupling_list))
 
5646
        return misc.make_unique(coupling_list)
5647
5647
    
5648
5648
    def get_matrix_elements(self):
5649
5649
        """Extract the list of matrix elements"""