~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to models/sm/object_library.py

  • Committer: olivier-mattelaer
  • Date: 2020-08-21 09:16:56 UTC
  • mfrom: (284.2.24 python3)
  • Revision ID: olivier-mattelaer-20200821091656-iizux2mj94tkssuo
pass to 2.8.0 (and move to python3 branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
##
8
8
##
9
9
 
 
10
from __future__ import absolute_import
10
11
import cmath
11
12
 
12
13
 
127
128
        if self.selfconjugate:
128
129
            raise Exception('%s has no anti particle.' % self.name) 
129
130
        outdic = {}
130
 
        for k,v in self.__dict__.iteritems():
 
131
        for k,v in self.__dict__.items():
131
132
            if k not in self.require_args_all:                
132
133
                outdic[k] = -v
133
134
        if self.color in [1,8]: