{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# meson" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "tikz:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKMAAAASCAQAAACd86bbAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1FB+cKExUQAeihIhYAAAFiSURBVFjD7ZYxTsMwFIa/h3oBcwRfwQsHcA/AYI4QBg7Q7iypmBmaI7QSBwAfoVkZGCI2JpQjPJa0JagwlKLXonwenFh+1p9fL+9ZlIHfc2Yt4H8w2HgQjtZGcRI2z1GcuO2btbYdai1ro0RKamoaCmZ4IOkVgJS01CSmeCIVgYmOQQqgIdBq1Yu+1tbURzUdlMwVhSfKbvYKkYWikCgpSYpCsV1XWOF70dH2O+x/6nUW5W72QKSVKBEHLJnLSkqWQKTZRKVetDEjawHf0Gpnqzg9l0hkwbi3w+1x6p9hn427yHRtRBITcZp1SgtkfLfDU1mL/IxpNkokgEQ8nkIgEkjSaJZKSjKemkAhNY4MmsXLhJrITJtedBLW+WuCbWn+sf0ERcEpBNzX9eMaphee/8MIQCJHeKU9ESptOhsfbi8vrNWcKvfv3B1rpz45BhsPwmDjQRgBPL6+DLVxT57fboAPMeqFcolZqEMAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMTAtMTlUMjE6MTY6MDErMDA6MDBcQYxyAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTEwLTE5VDIxOjE2OjAxKzAwOjAwLRw0zgAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0xMC0xOVQyMToxNjowMSswMDowMHoJFREAAAATdEVYdHBkZjpWZXJzaW9uAFBERi0xLjVTNlrBAAAASnRFWHRzaWduYXR1cmUAZWU2ZjdiZTE0NTg2MDkxNDI1N2E2MmE5YjU5MWM4YWRkYmQxZTI5N2E2M2YwOWMyNjljNDJkNGMxNDBkYzdmOU5AK8IAAAAASUVORK5CYII=", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "pyx:\n", "pyx 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/pyx/pyxrender.py\", line 66, in render\n", " nl = NamedLine[lname](Point(src.x, src.y), Point(tar.x, tar.y))\n", " ~~~~~~~~~^^^^^^^\n", "KeyError: 'meson'\n", "\n", "feynmp:\n", "feynmp 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/feynmp.py\", line 181, in __init__\n", " self.set_feynman_diagram(fd)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/feynmp.py\", line 185, in set_feynman_diagram\n", " self.set_src_diag(NoEscape(feynman_to_feynmp(fd)))\n", " ^^^^^^^^^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/feynmp.py\", line 139, in feynman_to_feynmp\n", " tttype = type_map[pstyle.getProperty(\"line\").value]\n", " ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "KeyError: 'meson'\n", "\n", "feynman:\n", "feynman 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/mpl/feynmanrender.py\", line 169, in render\n", " for style in get_styled_lines(self.fd, p):\n", " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/mpl/feynmanrender.py\", line 40, in get_styled_lines\n", " for i in namedlines[lname]:\n", " ~~~~~~~~~~^^^^^^^\n", "KeyError: 'meson'\n", "\n", "dot:\n", "dot 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/dot.py\", line 80, in __init__\n", " self.set_feynman_diagram(fd)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/dot.py\", line 84, in set_feynman_diagram\n", " self.src_dot = feynman_to_dot(\n", " ^^^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/interface/dot.py\", line 61, in feynman_to_dot\n", " thestyle = styler(fd, p)\n", " ^^^^^^^^^^^^^\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/latex/dot.py\", line 40, in stylize_connect\n", " style = 'style=\"{}\",texmode=\"raw\"'.format(map_feyn_to_tikz[lname])\n", " ~~~~~~~~~~~~~~~~^^^^^^^\n", "KeyError: 'meson'\n", "\n", "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 244, in render\n", " self.draw_connector(pane, p, src, tar, fmt)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/ascii.py\", line 198, in draw_connector\n", " self.namedlines[lname]().draw(pane, src, tar, **fmt, **tmp_fmt)\n", " ~~~~~~~~~~~~~~~^^^^^^^\n", "KeyError: 'meson'\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 244, in render\n", " self.draw_connector(pane, p, src, tar, fmt)\n", " File \"/home/apn/git/pyfeyn2/pyfeyn2/render/text/ascii.py\", line 198, in draw_connector\n", " self.namedlines[lname]().draw(pane, src, tar, **fmt, **tmp_fmt)\n", " ~~~~~~~~~~~~~~~^^^^^^^\n", "KeyError: 'meson'\n", "\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgcAAAIHCAYAAAALof87AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/OQEPoAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAH/ElEQVR4nO3WoQHAIBDAwNL9d34MJhOAuJsgMmtm5gMAOP7bAQDAW8wBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzA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wAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAsQFPvggKfg649gAAAABJRU5ErkJggg==", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from pyfeyn2.render.all import AllRender\n", "ar = AllRender().demo_propagator(\"meson\")" ] }, { "cell_type": "code", "execution_count": null, "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" }, "vscode": { "interpreter": { "hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6" } } }, "nbformat": 4, "nbformat_minor": 4 }