<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear All,<div class=""><br class=""></div><div class="">I still see the problem with upright particles with the latest versions of TeX Live. I have not yet found a workaround for it.</div><div class=""><br class=""></div><div class="">I recently reinstalled python (3.8.2), (matplotlib), MacTeX, PyFeyn in a clean way using brew and pyenv.</div><div class=""><br class=""></div><div class="">As a result PyX is now Version 0.15 and they have changed the text engine, so that PyFeyn no longer works. I have managed to get it working again and at the same time I have decoupled the initialisation of hepnicenames into a separate function that the user can call if he/she wants to.</div><div class=""><br class=""></div><div class="">While it is easy to adjust __init__.py to cope with different PyX versions, changes are also need in deco.py to use defaulttextengine instead of defaulttexrunner. I am not sure if and how one could make these changes dependent on the PyX version, or we just bite the bullet and say that PyFeyn only work with version 0.15 onwards.</div><div class=""><br class=""></div><div class="">I also tried playing around with things using Ubuntu installations. If I install pyfeyn with pip3, it automatically picks up PyX 0.15. I then have to remove that version and install PyX 0.14 by hand, so this is also not a real solution.</div><div class=""><br class=""></div><div class="">How should I go about submitting my changes?</div><div class=""><br class=""></div><div class="">I also see a problem with the Drell-Yan example script. If I leave the line as:</div><div class="">glu = Gluon(midpoint(out_vtx, out1), midpoint(out_vtx, out2)).set3D()</div><div class="">it fails as it says that </div><div class="">Drawing <class 'pyfeyn.lines.Gluon'> with styles = []<br class="">Traceback (most recent call last):<br class="">  File "./DY.py", line 33, in <module><br class="">    fd.draw("pyfeyn-test1.pdf")<br class="">  File "/Users/brock/.pyenv/versions/3.8.2/lib/python3.8/site-packages/pyfeyn/diagrams.py", line 70, in draw<br class="">    c = self.drawToCanvas()<br class="">  File "/Users/brock/.pyenv/versions/3.8.2/lib/python3.8/site-packages/pyfeyn/diagrams.py", line 62, in drawToCanvas<br class="">    obj.draw(self.currentCanvas)<br class="">  File "/Users/brock/.pyenv/versions/3.8.2/lib/python3.8/site-packages/pyfeyn/lines.py", line 522, in draw<br class="">    ass, bs = para.normpath_selfintersections(mypath.normpath(), 0.01, 0.1) #epsilon=0.01, eps_comparepairs=0.1)<br class="">  File "/Users/brock/.pyenv/versions/3.8.2/lib/python3.8/site-packages/pyx/deformer.py", line 1518, in normpath_selfintersections<br class="">    dist = self.dist_pt<br class="">AttributeError: 'parallel' object has no attribute 'dist_pt’<br class="">If I remove “.set3D()” it works, so the problem seems to be somehow connected to that, but I have not understood more.</div><div class=""><br class=""></div><div class="">Note that I had to add an extra argument to ass, bs = para.normpath_selfintersections(mypath.normpath(), 0.01, 0.1) #epsilon=0.01, eps_comparepairs=0.1) - before there was only epsilon</div><div class="">and as far as I can see <font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">para.normpath_selfintersections returns only 2 variables and not 3.</span></font></div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Best Regards</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Ian</div><div class=""><br class=""></div></div><div class=""><b class="">Ian C. Brock</b> <font color="#0433ff" class="">|</font> Physikalisches Institut, Universität Bonn <font color="#0433ff" class="">|</font> Nußallee 12 <font color="#0433ff" class="">|</font> D-53115 Bonn</div><div style="margin: 0px;" class="">Tel. +49 228 733616 <font color="#0433ff" class="">|</font> Email: <a href="mailto:brock@physik.uni-bonn.de" class="">i.brock@uni-bonn.de</a></div><div style="margin: 0px;" class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br class="Apple-interchange-newline">
</div>

<div><br class=""><blockquote type="cite" class=""><div class="">On 23 Apr 2019, at 14:03, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" class="">andy.buckley@cern.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Ian,</div><br class=""><div class="">Really glad you're using and liking it! From my point of view pyfeyn is not actively developed, and I didn't even know about this need to hack to use newtx fonts. I'll happily accept, merge, and make a new release if you have any code patches for the features you want, and can probably recall enough of the implementation detail to help with figuring out with passing extra label specifications to PyX if that's not obvious.</div><br class=""><div class=""><signature id="initial" class=""><div class=""><table cellpadding="0" cellspacing="0" class=""><tbody class=""><tr class=""><td colspan="2" class=""><div style="padding-bottom:15px" class=""><div class=""><strong class="">Dr Andy Buckley, Senior Lecturer & Royal Society Research Fellow</strong></div><div class="">Particle Physics Experiment Group, University of Glasgow, UK</div></div></td></tr><tr class=""><td style="vertical-align:top" class=""></td><td class=""><div style="font-size:0.9em;white-space:nowrap;border-left:2px solid gray;margin-left:20px;padding-left:20px" class=""><div class=""><div class=""></div><div class=""></div></div></div></td></tr></tbody></table></div></signature></div><div class="gmail_quote_attribution">On Apr 15 2019, at 8:54 am, Ian Brock <<a href="mailto:brock@physik.uni-bonn.de" class="">brock@physik.uni-bonn.de</a>> wrote:</div><blockquote class=""><div class=""><div class="">Dear PyFeyn,</div><div class=""><br class=""></div><div class="">I have been using PyFeyn for a couple of years now and am very happy with it. It would be great if it was not necessary to fix vffile.py so that one can use the newtx fonts. I guess that needs a new version of PyX though?</div><div class=""><br class=""></div><div class="">In addition, it would be nice to be able to control how hepnicenames is included. I sometimes want it with the italic option and sometimes not. At the moment I simply comment that out in the __init__.py file of pyfeyn.</div><div class=""><br class=""></div><div class="">The main reason I write this mail though, is that it would be good to have some more control over the labels (expecially on boson and fermion lines). Sometimes it would be good to have the horizontal alignment left instead of centred for example. It would also be nice if it was easy to change the default text size. I did not find a way to do either of these things. Am I missing something?</div><div class=""><br class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Best Regards</div><div class=""><div class="">Ian</div><div class=""><br class=""></div></div><div class=""><strong class="">Ian C. Brock</strong> <span style="color:#0433ff" class="">|</span> Physikalisches Institut, Universität Bonn <span style="color:#0433ff" class="">|</span> Nußallee 12 <span style="color:#0433ff" class="">|</span> D-53115 Bonn</div><div class="">Tel. +49 228 733616 <span style="color:#0433ff" class="">|</span> Email: <a href="mailto:brock@physik.uni-bonn.de" title="mailto:brock@physik.uni-bonn.de" class="">i.brock@uni-bonn.de</a></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br class=""></div><br class=""></div><div class="">_______________________________________________</div><div class="">PyFeyn mailing list</div><div class=""><a href="mailto:PyFeyn@projects.hepforge.org" class="">PyFeyn@projects.hepforge.org</a></div><div class=""><a href="https://www.hepforge.org/lists/listinfo/pyfeyn" class="">https://www.hepforge.org/lists/listinfo/pyfeyn</a></div></div></blockquote></div></blockquote></div><br class=""></div></body></html>