File tree Expand file tree Collapse file tree 6 files changed +16
-6
lines changed
Expand file tree Collapse file tree 6 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1818import re
1919import sys
2020
21- import toml
22-
2321sys .path .insert (0 , os .path .abspath ("../.." ))
2422import copy
23+ import tomllib
2524
2625from smpl_doc import doc
2726from smpl_io import io
3130
3231# -- Project information -----------------------------------------------------
3332
33+
3434try :
35- info = toml .load ("../../pyproject.toml" )
35+ with open ("../../pyproject.toml" , "rb" ) as f :
36+ info = tomllib .load (f )
3637except FileNotFoundError :
37- info = toml .load ("pyproject.toml" )
38+ with open ("pyproject.toml" , "rb" ) as f :
39+ info = tomllib .load (f )
40+
3841project = info ["project" ]["name" ]
3942copyright = str (datetime .datetime .now ().year ) + ", Alexander Puck Neuwirth"
4043author = ", " .join ([a ["name" ] for a in info ["project" ]["authors" ]])
Original file line number Diff line number Diff line change 1+ ============================ ================================== ================================= ==================================== ===================================== ================================= ===================================== ====================================== ======================================== ======================================
2+ :ref: `style ` tikz pyx feynmp feynman dot mermaid asciipdf unicodepdf madgraph
3+ ============================ ================================== ================================= ==================================== ===================================== ================================= ===================================== ====================================== ======================================== ======================================
4+ :ref: `momentum-arrow-side ` |tikz.style.momentum-arrow-side | |pyx.style.momentum-arrow-side | |feynmp.style.momentum-arrow-side | |feynman.style.momentum-arrow-side | |dot.style.momentum-arrow-side | |mermaid.style.momentum-arrow-side | |asciipdf.style.momentum-arrow-side | |unicodepdf.style.momentum-arrow-side | |madgraph.style.momentum-arrow-side |
5+ ============================ ================================== ================================= ==================================== ===================================== ================================= ===================================== ====================================== ======================================== ======================================
Original file line number Diff line number Diff line change 2424:ref: `line ` |tikz.style.line | |pyx.style.line | |feynmp.style.line | |feynman.style.line | |dot.style.line | |mermaid.style.line | |asciipdf.style.line | |unicodepdf.style.line | |madgraph.style.line |
2525:ref: `momentum-arrow ` |tikz.style.momentum-arrow | |pyx.style.momentum-arrow | |feynmp.style.momentum-arrow | |feynman.style.momentum-arrow | |dot.style.momentum-arrow | |mermaid.style.momentum-arrow | |asciipdf.style.momentum-arrow | |unicodepdf.style.momentum-arrow | |madgraph.style.momentum-arrow |
2626:ref: `momentum-arrow-sense ` |tikz.style.momentum-arrow-sense | |pyx.style.momentum-arrow-sense | |feynmp.style.momentum-arrow-sense | |feynman.style.momentum-arrow-sense | |dot.style.momentum-arrow-sense | |mermaid.style.momentum-arrow-sense | |asciipdf.style.momentum-arrow-sense | |unicodepdf.style.momentum-arrow-sense | |madgraph.style.momentum-arrow-sense |
27+ :ref: `momentum-arrow-side ` |tikz.style.momentum-arrow-side | |pyx.style.momentum-arrow-side | |feynmp.style.momentum-arrow-side | |feynman.style.momentum-arrow-side | |dot.style.momentum-arrow-side | |mermaid.style.momentum-arrow-side | |asciipdf.style.momentum-arrow-side | |unicodepdf.style.momentum-arrow-side | |madgraph.style.momentum-arrow-side |
2728:ref: `nloops ` |tikz.style.nloops | |pyx.style.nloops | |feynmp.style.nloops | |feynman.style.nloops | |dot.style.nloops | |mermaid.style.nloops | |asciipdf.style.nloops | |unicodepdf.style.nloops | |madgraph.style.nloops |
2829:ref: `opacity ` |tikz.style.opacity | |pyx.style.opacity | |feynmp.style.opacity | |feynman.style.opacity | |dot.style.opacity | |mermaid.style.opacity | |asciipdf.style.opacity | |unicodepdf.style.opacity | |madgraph.style.opacity |
2930:ref: `symbol ` |tikz.style.symbol | |pyx.style.symbol | |feynmp.style.symbol | |feynman.style.symbol | |dot.style.symbol | |mermaid.style.symbol | |asciipdf.style.symbol | |unicodepdf.style.symbol | |madgraph.style.symbol |
Original file line number Diff line number Diff line change 33from smpl_doc .doc import deprecated
44
55event_to_feynman = deprecated (
6- "2.2.6" , "Directly use feynml.interface.hepmc.event_to_feynman ()"
6+ "2.2.6" , "Directly use feynml.interface.hepmc.hepmc_event_to_feynman ()"
77)(_event_to_feynman )
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ def valid_types(cls) -> List[str]:
177177 "boson" ,
178178 "fermion" ,
179179 "anti fermion" ,
180+ "squark" ,
181+ "anti squark" ,
180182 ]
181183
182184 @classmethod
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ docs = [
7272 " sphinx_autobuild" ,
7373 " sphinx_math_dollar" ,
7474 " myst-parser" ,
75- " toml" ,
7675]
7776test = [
7877 " pytest" ,
You can’t perform that action at this time.
0 commit comments