{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# baryon" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "tikz:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKMAAAAaCAQAAABxoCS2AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1FB+cKExUQFIV8xv0AAAIMSURBVGje7Zi9btRAFIW/g5CilOYJopHo6CyRiHq6VBQWb2AKauRXcHoodp8AbSQegHVPY0upKEBYKYjSoDWigupSxFmz2iX8ZMMMyN80M5oZ6/jMnV8ZI9fnVmgB/wejjVthtHErjDZuhYA2yquUD23Adghoo1XAaOPIQFQ2ysn9YsvIoji0jakyZSqVgEoSUk0A5FWrUKEFKNd7zUBOtUpQrhxUKJdXrYlyec2UBP0PC5goKQ0Dx5wEMwzm+KGuz+dMDIPMwDPre9c4yr6m7xUq3Q4cjRdD2cqTmJTTsRJVVgFwTKGEhA7wtH1lRwZ0odVD+Ek9cE81jR1vssU6KjJ8b+pA2In8HVHYKEfDAypr+nK51uSIoje44nIbckxDK78k9KTulNHheQyU8jgqMhp5UlBuvVHWqqECsEpOBQ2eIxwpyONwZGItWv8eIRdmwyDBLfPpFe3ylVJ6c4r+JCn+90ZNqOhorb3+t26KKNbGn9AAxGwiMUejSqqAq93vaTVAPsongkfs8YkTTvgaWsoVTK3lYot5+doiZLiW5FaHFvNDnj1d3mI+7MQ4dxbDgDPlLocchpa0gY+70J8bz3bOQqvZwGKl9I4XnLMXWtQaXwYb9z8/DK1mAw2ny3xOThpa0EaeL6C38dXp24PQctY5BeAO+9xnl4oYFx54c/6EuA88czqm/8aR5xs9BeReSJRySgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0xMC0xOVQyMToxNjoyMCswMDowMLgTgLsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMTAtMTlUMjE6MTY6MjArMDA6MDDJTjgHAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTEwLTE5VDIxOjE2OjIwKzAwOjAwnlsZ2AAAABN0RVh0cGRmOlZlcnNpb24AUERGLTEuNVM2WsEAAABKdEVYdHNpZ25hdHVyZQAzMTAwMGFlNTQzMDhjNWM5MzRlN2RjOGM5ODM3YTc0NzljZWRhODZkNDBjNTY4MmZlOTViNWYzMGY4Zjg4NDliiW643wAAAABJRU5ErkJggg==", "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: 'baryon'\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: 'baryon'\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: 'baryon'\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: 'baryon'\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: 'baryon'\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: 'baryon'\n", "\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgcAAAIHCAYAAAALof87AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/OQEPoAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAH/ElEQVR4nO3WoQHAIBDAwNL9d34MJhOAuJsgMmtm5gMAOP7bAQDAW8wBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMA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AAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAYQ4AgDAHAECYAwAgzAEAEOYAAAhzAACEOQAAwhwAAGEOAIAwBwBAmAMAIMwBABDmAAAIcwAAhDkAAMIcAABhDgCAMAcAQJgDACDMAQAQ5gAACHMAAIQ5AADCHAAAsQFPvggKfg649gAAAABJRU5ErkJggg==", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from pyfeyn2.render.all import AllRender\n", "ar = AllRender().demo_propagator(\"baryon\")" ] }, { "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 }