{ "cells": [ { "cell_type": "markdown", "id": "a6393fc9", "metadata": {}, "source": [ "# diamond" ] }, { "cell_type": "code", "execution_count": 3, "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: 'diamond'\n", "\n", "pyx:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAJ0AAACdCAQAAAAEL7JdAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAyAAAAMgAY/rnrQAAAAd0SU1FB+cLBAw5O4myuiYAAAMpSURBVHja7d3LedRAFITREh8JsCMIdiTAAlKZCYJI8NpZOAZicQhiYcDz0KOlkfTf6r51E6g6AXR3vTJL033Si75+oGv45Q1Ov5NuYf7B6UfSLco7XP+adAtyCScl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TI6NTc6NTkrMDA6MDCRrSwmAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTExLTA0VDEyOjU3OjU5KzAwOjAwxrgN+QAAADh0RVh0cGRmOkhpUmVzQm91bmRpbmdCb3gANTYuNjkyOXg1Ni42OTI5LTI4LjM0NjQ1Ny0yOC4zNDY0NTcq/djzAAAAE3RFWHRwZGY6VmVyc2lvbgBQREYtMS40JDFqVwAAAEp0RVh0c2lnbmF0dXJlADE2MjE5N2Q5OWE0ZTNjNmZlNTVlNDFiMjNlMWRlMTFlZDAyYjY1NTYyMTI2YjdhYzlkYmNhODUyZTczZDgyNTOBnSfLAAAAAElFTkSuQmCC", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "feynmp:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAALQAAABvCAQAAADvPSJVAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1FB+cLBAw6ABOUAMEAAAT9SURBVHja7Z2/svpEGIafz/EGYqtVbsAiXoGT02jNuYRwCXgJ0P0qZ6CxdIZzCeQCLMionY1UNjZSW62FIQMkkE3YZCH7vSkOZJJl9+U93+ZZ/omhq2RHwpspOp8YtD7rcc6KiJ0kvrv+WuphtMmZE7GVyHfnX0l9Eo3ZMCdmp1bbS7rX6PLENRmF+cb3AF5FvRINYOZsSGTtewCvot6JBpAdKRsz9z2IV1DvRAPwTkEmC9+DeAU9lGiQiB0Jc7PxPZBn14NGgyTsiHg3H76H8tx62OjSapQV7+uxGg2AKXhXVmyTA6OVFW3kxGhlxXY5qNFVU8qKd+Qo0aCseF8OEw3KirflMNGAsuJNOU60suItOTdaWbFZAxitrNgk1zUaUFZs0iBGKyvWNZDRyorXGqRGV40rK1YaLNGgrHiuQRMNyoonDZpoQFmx1OCJ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Y1zA/DxI8B9Y1QKKVA5vk/ieclAMb5TjRyoG35DTRyoG35fIXOpUD78iZ0cqB9+WIDJUD2+RkMlQObJcDo5UDbeSgRisH2ujhRCsH2unBRCsH2uqhRCsH2uuBRCsHdlFvo5UDu6mn0cqBXdWLDJUDu6vHZKgc2Ed9rjrWyoHd9R/55op4FUxPVwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0xMS0wNFQxMjo1ODowMCswMDowMMyDhKAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMTEtMDRUMTI6NTg6MDArMDA6MDC93jwcAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTExLTA0VDEyOjU4OjAwKzAwOjAw6ssdwwAAABN0RVh0cGRmOlZlcnNpb24AUERGLTEuNVM2WsEAAABKdEVYdHNpZ25hdHVyZQBlYzZlNmVkMzc3MTRhOWIxYzQ5ZmIyNGFmOTFiMzE2MGMzY2E1NmJjZTBlOGEwZDM3MjU0ODI0OWVkZmIzNzYyLr2PMwAAAABJRU5ErkJggg==", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "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 154, in render\n", " marker=marker_map[self.fd.get_style_property(v, \"symbol\")],\n", " ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "KeyError: 'diamond'\n", "\n", "dot:\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAASgAAAD7CAQAAABz08GnAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAAZA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": "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: 'diamond'\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: 'diamond'\n", "\n" ] } ], "source": [ "from pyfeyn2.render.all import AllRender\n", "ar = AllRender().demo_vertex(\"diamond\")" ] }, { "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 }