~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to tests/input_files/fourfermion_UFO/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
 
12
import six
11
13
 
12
14
 
13
15
class UFOBaseClass(object):
127
129
        if self.selfconjugate:
128
130
            raise Exception('%s has no anti particle.' % self.name) 
129
131
        outdic = {}
130
 
        for k,v in self.__dict__.iteritems():
 
132
        for k,v in six.iteritems(self.__dict__):
131
133
            if k not in self.require_args_all:                
132
134
                outdic[k] = -v
133
135
        if self.color in [1,8]: