<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hey, Sam,<br>
<br>
Sorry for the problem and thanks for letting us know.<br>
<br>
This has been taken care of in the SVN and the fix will appear in
the next release.<br>
<br>
Thanks,<br>
George<br>
<br>
<br>
On 10/17/2014 9:12 AM, Sam Hall wrote:<br>
</div>
Hi PyFeyn,
<blockquote
cite="mid:CALOY5uE25MEk1147dU06M9ay=xWgJdyri8xkLsDwYy8WHUVLsw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>I was trying to run your example (<a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyFeyn mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PyFeyn@projects.hepforge.org">PyFeyn@projects.hepforge.org</a>
<a class="moz-txt-link-freetext" href="https://www.hepforge.org/lists/listinfo/pyfeyn">https://www.hepforge.org/lists/listinfo/pyfeyn</a></pre>
</blockquote>
<br>
</body>
</html>