~maddevelopers/mg5amcnlo/2.7.4_array

« back to all changes in this revision

Viewing changes to madgraph/loop/loop_diagram_generation.py

  • Committer: olivier-mattelaer
  • Date: 2019-10-16 11:38:38 UTC
  • mfrom: (282.1.28 2.6.7)
  • Revision ID: olivier-mattelaer-20191016113838-6u4j5u3hn06rq2wc
pass to 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
                                       self['process']['squared_orders'].keys():
649
649
            if not order in model.get('coupling_orders') and \
650
650
                                                            order != 'WEIGHTED':
651
 
                raise InvalidCmd("Coupling order %s not found"%order +\
 
651
                if self['process']['orders'][order] == 0:
 
652
                    del self['process']['orders'][order]
 
653
                else:
 
654
                    raise InvalidCmd("Coupling order %s not found"%order +\
652
655
                   " in any interaction of the current model %s."%model['name'])
653
656
 
654
657
        # The decision of whether the virtual must be squared against the born or the