|
[PyFeyn] bug!!!Viesturs Veckalns viesturs.veckalns at cern.chFri Jan 15 22:28:31 GMT 2016
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20160115/4182251e/attachment.html>
More information about the PyFeyn mailing list |