~mg5core1/mg5amcnlo/2.8.3.py3

« back to all changes in this revision

Viewing changes to madgraph/core/helas_objects.py

  • Committer: olivier-mattelaer
  • Date: 2021-02-02 16:16:38 UTC
  • mfrom: (288.4.15 2.8.3.py2)
  • Revision ID: olivier-mattelaer-20210202161638-qwo2buby5bf5u56k
merge with 2.8.3.py2

Show diffs side-by-side

added added

removed removed

Lines of Context:
3935
3935
                    # Extract all wavefunctions contributing to this amplitude
3936
3936
                    diagram_wfs = HelasWavefunctionList()
3937
3937
                    for amplitude in diagram.get('amplitudes'):
3938
 
                        wavefunctions = \
3939
 
                          sorted(HelasWavefunctionList.\
3940
 
                               extract_wavefunctions(amplitude.get('mothers')),
3941
 
                                 key=lambda wf: wf.get('number'))
3942
 
                        for wf in wavefunctions:
 
3938
                        wavefunctions = HelasWavefunctionList.\
 
3939
                               extract_wavefunctions(amplitude.get('mothers'))
 
3940
 
 
3941
                        for wf in reversed(wavefunctions):
3943
3942
                            # Check if wavefunction already used, otherwise add
3944
3943
                            if wf.get('number') not in wf_numbers and \
3945
3944
                                   wf not in diagram_wfs: