[PyFeyn] bug!!!

Viesturs Veckalns viesturs.veckalns at cern.ch
Tue Jan 26 14:22:40 GMT 2016


Here you are.
I prepared Feynman diagrams with PyFeyn, but I used Inkscape to draw colour flow lines on them (see attachment).

I could propose drawing colour lines on top of Feynman diagrrams as an improvement for PyFeyn. 

Cheers,
Viesturs
________________________________________
From: Andy Buckley
Sent: 22 January 2016 21:10
To: Viesturs Veckalns; pyfeyn at projects.hepforge.org
Subject: Re: [PyFeyn] bug!!!

Hi Viesturs,

Thanks again for the report -- we've added the missing tarball for
PyFeyn 0.3.5 now, which should work for you.

Best wishes,
Andy, George & Georg


On 15/01/16 22:28, Viesturs Veckalns wrote:
> Dear colleagues!
> I got all examples running (see my previous mail) by changing the source
> file
>
> /usr/local/lib/python2.7/dist-packages/pyfeyn/deco.py
>
> in the following way:
>
> 1. In function getarrowpath I introduced argument constriction and
> removed "self" in its implementation:
>
> def getarrowpath(arrowtopath, selfpos, var1, selfsize, var2,
> constriction, constrictionlen):
>          if pyxversion >= Version("0.12"):
>              arrowpath = pyx.deco._arrowhead(arrowtopath, selfpos,
>                                          1, selfsize, 45, constriction,
>                                          constrictionlen)
>          else:
>              arrowpath = pyx.deco._arrowhead(arrowtopath, selfpos,
>                                          1, selfsize, 45, constrictionlen)
>          return arrowpath
>
> 2. In the implementation of Arrow::decorate I added self.constriction to
> the arguments of getarrowpath
> arrowpath = getarrowpath(arrowtopath, self.pos*dp.path.arclen(),
>                                          1, self.size, 45,
> self.constriction, constrictionlen)
>
> There was an apparent bug in the pyfeyn deco source code.
>
> Cheers,
> Viesturs
>
>
> _______________________________________________
> PyFeyn mailing list
> PyFeyn at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/pyfeyn
>


--
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colour_flow_SM.svg
Type: image/svg+xml
Size: 58209 bytes
Desc: colour_flow_SM.svg
URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20160126/bc1daeee/attachment.svg>


More information about the PyFeyn mailing list