[PyFeyn] Example code

Sam Hall s.hall11 at imperial.ac.uk
Fri Oct 17 14:12:51 BST 2014


Hi PyFeyn,

I was trying to run your example (http://pyfeyn.hepforge.org/pyfeyn-test1.py)
and got the error:

/Users/scphall/Documents/thesis/tex/feynman/pyfeyn/pyfeyn/deco.pyc in
getarrowpath(arrowtopath, selfpos, var1, selfsize, var2, constrictionlen)

     14         if pyxversion >= Version("0.12"):

     15             arrowpath = pyx.deco._arrowhead(arrowtopath, selfpos,

---> 16                                         1, selfsize, 45, self.
constriction,

     17                                         constrictionlen)

     18         else:


NameError: global name 'self' is not defined

I altered pyfeyn/deco.py to the attached (just some judicious additions of
'self') and it now works.
Hope this is of use.

Cheers,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20141017/5eb8546b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deco.py
Type: text/x-python-script
Size: 12891 bytes
Desc: not available
URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20141017/5eb8546b/attachment.bin>


More information about the PyFeyn mailing list