<div dir="ltr">Hi PyFeyn,<div><br></div><div>I was trying to run your example (<a href="http://pyfeyn.hepforge.org/pyfeyn-test1.py">http://pyfeyn.hepforge.org/pyfeyn-test1.py</a>) and got the error:</div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)">/Users/scphall/Documents/thesis/tex/feynman/pyfeyn/pyfeyn/deco.pyc<span style="color:rgb(245,245,245)"> in </span><span style="color:rgb(52,187,199)">getarrowpath</span><span style="color:rgb(83,48,225)">(arrowtopath, selfpos, var1, selfsize, var2, constrictionlen)</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(52,189,38)"> 14</span> <span style="color:rgb(52,189,38)">if</span> pyxversion <span style="color:rgb(83,48,225)">>=</span> Version<span style="color:rgb(83,48,225)">("0.12"):</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(52,189,38)"> 15</span> arrowpath = pyx.deco._arrowhead(arrowtopath, selfpos,</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(195,55,32);background-color:rgb(0,0,0)"><span style="color:rgb(52,189,38)">---> 16</span> <span style="color:rgb(52,187,199)">1</span><span style="color:rgb(83,48,225)">,</span><span style="color:rgb(245,245,245)"> selfsize</span><span style="color:rgb(83,48,225)">,</span><span style="color:rgb(245,245,245)"> </span><span style="color:rgb(52,187,199)">45</span><span style="color:rgb(83,48,225)">,</span><span style="color:rgb(245,245,245)"> self</span><span style="color:rgb(83,48,225)">.</span><span style="color:rgb(245,245,245)">constriction</span><span style="color:rgb(83,48,225)">,</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(52,189,38)"> 17</span> constrictionlen)</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"> 18<span style="color:rgb(245,245,245)"> </span>else<span style="color:rgb(83,48,225)">:</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:14px"><br></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">NameError</span>: global name 'self' is not defined</p></div><div><br></div><div>I altered pyfeyn/deco.py to the attached (just some judicious additions of 'self') and it now works.</div><div>Hope this is of use.</div><div><br></div><div>Cheers,</div><div>Sam</div></div>