[PyFeyn] bug in pyfeyn/deco.py ?

Hannsjörg Weber hannsjorg.artur.weber at cern.ch
Mon Mar 31 17:18:53 BST 2014


Dear pyfeyn authors,

it seems to me that a bug is in your code (at
least for me it crashed for all examples from
the website).

In pyfeyn/deco.py the lines
l.13
l.45
l.158
crashed as

"
   File 
"/Users/haweber/PhD/SUSY/topologies/pyfeyn-0.3.4/pyfeyn/deco.py", line 
16, in getarrowpath
     1, selfsize, 45, self.constriction,
NameError: global name 'self' is not defined
"

Adding a 'self' as first argument in these three lines fixes it.
I was using the latest version 0.3.4.

Regards,
    Hannsjörg Weber


More information about the PyFeyn mailing list