|
[PyFeyn] Example codeGeorge S. Williams physicist at websterling.comFri Oct 17 23:48:33 BST 2014
Hey, Sam, Sorry for the problem and thanks for letting us know. This has been taken care of in the SVN and the fix will appear in the next release. Thanks, George On 10/17/2014 9:12 AM, Sam Hall wrote: 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.pycin > 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) > > 18else: > > > 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 > > > _______________________________________________ > PyFeyn mailing list > PyFeyn at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/pyfeyn -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20141017/4fd7dc1b/attachment.html>
More information about the PyFeyn mailing list |