{ "cells": [ { "cell_type": "markdown", "id": "a6393fc9", "metadata": {}, "source": [ "# triangle" ] }, { "cell_type": "code", "execution_count": 2, "id": "24473f51", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "tikz:\n", "tikz failed:\n", "Traceback (most recent call last):\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/all.py\", line 109, in render\n", " render(fd).render(dirpath + \"/\" + name + \".pdf\", **dynarg)\n", " ^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/tikzfeynman.py\", line 237, in __init__\n", " self.set_feynman_diagram(fd)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/tikzfeynman.py\", line 241, in set_feynman_diagram\n", " self.set_src_diag(NoEscape(feynman_to_tikz_feynman(fd)))\n", " ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/tikzfeynman.py\", line 185, in feynman_to_tikz_feynman\n", " src += stylize_node(fd, v)\n", " ^^^^^^^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/tikzfeynman.py\", line 135, in stylize_node\n", " ret += shape_map[style.getProperty(\"symbol\").value] + \",\"\n", " ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "KeyError: 'triangle'\n", "\n", "pyx:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAJ0AAACdCAQAAAAEL7JdAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+cLBAw5L5NoblsAAAMpSURBVHja7d3LedRAFITREh8JsCMIdiTAAlKZCYJI8NpZOAZicQhiYcDz0KOlkfTf6r51E6g6AXR3vTJL033Si75+oGv45Q1Ov5NuYf7B6UfSLco7XP+adAtyCScl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TI6NTc6NDcrMDA6MDANOFflAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTExLTA0VDEyOjU3OjQ3KzAwOjAwWi12OgAAADh0RVh0cGRmOkhpUmVzQm91bmRpbmdCb3gANTYuNjkyOXg1Ni42OTI5LTI4LjM0NjQ1Ny0yOC4zNDY0NTcq/djzAAAAE3RFWHRwZGY6VmVyc2lvbgBQREYtMS40JDFqVwAAAEp0RVh0c2lnbmF0dXJlADE2MjE5N2Q5OWE0ZTNjNmZlNTVlNDFiMjNlMWRlMTFlZDAyYjY1NTYyMTI2YjdhYzlkYmNhODUyZTczZDgyNTOBnSfLAAAAAElFTkSuQmCC", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "feynmp:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAALQAAABvCAQAAADvPSJVAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1FB+cLBAw5MB5gY64AAAVESURBVHja7Z09buNGGIafL0gVIAi4TVJtwRyBOUAKutqaatNRQS5AA3sBLbYJ0lHV1tIJAhHYC5hATiBgyzRmECD1pJBEy+boh+SQY2rmVWF5aJIzr15/5DOkJFG0lWyIuFNl6xWd1lcd1vlAwEYi212fljoYrQrmBKwksN35KalLolFL5oRsvNXXS9rX6P2KOSml+sn2AKaiTokGUHOWRJLbHsBU1DnRALIhZqnmtgcxBXVONAAzSlLJbA9iCuqVaJCADRFztbQ9kNeunkaDRGwImKm17aG8bvU2em81nhXPq1+NBkCVzDwrXpIBoz0rXiMjRntWvCwDNbrelGfFMzKUaPCseF4GEw2eFU/LYKIBz4onZTjRnhVPybjRnhX1GsBoz4o6ma7RgGdFnQYx2rNiUwMZ7VnxpQap0fXGPSvWGizR4FnxWIMmGjwrHjRoogHPinsNnmjPins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5oNzlQ48OwiXaVAzVODPppu85yoMaL4Yx2mQObGowM3ebApgY6GLrOgU0NYrTnwKaG+XoQ5zmwqQES7TlQJ/Nf4eQ5UCvDifYceEpGE+058LRMfkOn58AzMma058DzMkSGngMvycjB0HPgZRkw2nPgNTJQoz0HXqPeifYceJ16Jtpz4LXqlWjPgderR6I9B7ZRZ6M9B7ZTR6M9B7ZVJzL0HNheHQ6GngO7qMtZR+45sL3+B1brpE50DJTyAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTExLTA0VDEyOjU3OjQ4KzAwOjAwii2fsAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0xMS0wNFQxMjo1Nzo0OCswMDowMPtwJwwAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjMtMTEtMDRUMTI6NTc6NDgrMDA6MDCsZQbTAAAAE3RFWHRwZGY6VmVyc2lvbgBQREYtMS41UzZawQAAAEp0RVh0c2lnbmF0dXJlAGQwMWI4ZWU1ZTBiMTVkNDViMDU1NDNjZWU0YzljN2ZhNDY5MzFjOGZjM2U1OTA2ZWI2ODRjODRmMWQ2ZDk5MTVF3zWbAAAAAElFTkSuQmCC", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "feynman:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgcAAAIHCAYAAAALof87AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/OQEPoAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAU90lEQVR4nO3dX4gdZ/nA8ee40gWrprVoSU0TFC9ECZXSaGnWNi0FLW2NFSEU/BMUryRXTRShmhQFI82KeCWCtCJaBa3EQloXJaZpUiUYDL2wVGOziYq2IGoIpRpzfhdt9rdvzv47e+bMvDPv5wML2Zk5w7OBZb/7zpzZXr/f7wcAwKte0/QAAEBexAEAkBAH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9ftNDAEBOpqenY+fOnQPbjxw5EjfddFMDE9XLygEAXGKhFYTdu3cXEQYR4gAAFjQ/EHbv3h179uxpdqAauawAAEs4evRoMSsGF4kDACDhsgIAkBAHAEBCHAAACXEAACTEAQCQEAcAQEIcAAAJcQAAJMQBAJAQBwBAQhwAAAlxAAAkxAEAkBAHAEBCHAAACXEAACTEAQCQEAcAQEIcAAAJcQAAJMQBAJAQBwBAQhwAAAlxAAAkxAEAkBAHAEBCHAAACXEAACTEAQCQEAcAQEIcAAAJcQAAJMQBAJAQBwBAQhwAAAlxAAAkxAEAkBAHAEBCHAAACXEAACTEAQCQEAcAQEIcAAAJcQAAJMQBAJAQBwBAQhwAAAlxAAAkxAEAkBAHAEBCHAAACXEAACTEAQCQEAcAQEIcAAAJcQAAJMQBAJD4Pwu++wSHj2oeAAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "dot:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAASgAAAD7CAQAAABz08GnAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1FB+cLBAw5MWlnUzgAAATuSURBVHja7dTLbZxHEIXRHksZOQbHohScCpmCQ/DaSwPOxRtvKHpBCHqRw3nU311Vfb4EbjVw0Kfn/8aHIQV1en4av6w+Qn2CSaEBpdCAUmhAKTSgFBpQCg0ohQaUQgNKoQGl0IBSaEApNKAUGlAKDSiFBpRCA0qhAaXQgFJoQCk0oBQaUAoNKIUG1Fb9Mf4+eAGojXocnw7fAGqbHsfv48/x68ErQG3SHE5AbdIsTkBt0TxOQG3QTE5AtW8uJ6CaN5sTUK2bzwmoxq3gBFTb1nACqmmrOAHVsnWcgGrYSk5AtWstJ6CatZoTUK1azwmoRmXgBFSbcnACqklZOAHVojycgGpQJk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UUC3KQwqoJmUhBVSbcpACqlEZSAHVqvWkgGrWalJAtWstKaAatpIUUC1bRwqopq0iBVTb1pACqnErSAHVuvmkgGrebFJAtW8uKaA2aCYpoLZoHimgNmkWKaC2aQ4poDbqYYzxePDG6fkJKsUFk0IDSqEBpdCAUmhAKTSgFBpQCg0ohQaUQgNKoQGl0IBSaEApNKAUGlAKDSiFBpRCA0qhAaXQgFJoQCk0oBQaUArt4ziNz6uPUJtO/wORMjim8uu2uAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0xMS0wNFQxMjo1Nzo0OSswMDowMCxalAQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMTEtMDRUMTI6NTc6NDkrMDA6MDBdByy4AAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTExLTA0VDEyOjU3OjQ5KzAwOjAwChINZwAAABN0RVh0cGRmOlZlcnNpb24AUERGLTEuNVM2WsEAAABKdEVYdHNpZ25hdHVyZQBmNzNhYWUyN2NjYjhiMWEwNGQyZjRiNDQxMTM0N2VmOGE3MDA3YjgwOWJhOGFkYmE4MGNmYzlhZjk5YzQ2M2Ixty4LCwAAAABJRU5ErkJggg==", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "asciipdf:\n", "asciipdf failed:\n", "Traceback (most recent call last):\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/all.py\", line 109, in render\n", " render(fd).render(dirpath + \"/\" + name + \".pdf\", **dynarg)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/asciipdf.py\", line 25, in render\n", " ASCIIRender.render(\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/ascii.py\", line 309, in render\n", " self.namedshapes[ssss.getProperty(\"symbol\").value].draw(\n", " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "KeyError: 'triangle'\n", "\n", "unicodepdf:\n", "unicodepdf failed:\n", "Traceback (most recent call last):\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/all.py\", line 109, in render\n", " render(fd).render(dirpath + \"/\" + name + \".pdf\", **dynarg)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/unicodepdf.py\", line 64, in render\n", " UnicodeRender.render(\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/ascii.py\", line 309, in render\n", " self.namedshapes[ssss.getProperty(\"symbol\").value].draw(\n", " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "KeyError: 'triangle'\n", "\n" ] } ], "source": [ "from pyfeyn2.render.all import AllRender\n", "ar = AllRender().demo_vertex(\"triangle\")" ] }, { "cell_type": "code", "execution_count": null, "id": "9b444f3e", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.5" } }, "nbformat": 4, "nbformat_minor": 5 }