Skip to content

Commit 3b2d5be

Browse files
committed
toml -> tomlib
1 parent 556cce8 commit 3b2d5be

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

docs/source/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
import re
1919
import sys
2020

21-
import toml
22-
2321
sys.path.insert(0, os.path.abspath("../.."))
2422
import copy
23+
import tomllib
2524

2625
from smpl_doc import doc
2726
from smpl_io import io
@@ -31,10 +30,14 @@
3130

3231
# -- Project information -----------------------------------------------------
3332

33+
3434
try:
35-
info = toml.load("../../pyproject.toml")
35+
with open("../../pyproject.toml", "rb") as f:
36+
info = tomllib.load(f)
3637
except FileNotFoundError:
37-
info = toml.load("pyproject.toml")
38+
with open("pyproject.toml", "rb") as f:
39+
info = tomllib.load(f)
40+
3841
project = info["project"]["name"]
3942
copyright = str(datetime.datetime.now().year) + ", Alexander Puck Neuwirth"
4043
author = ", ".join([a["name"] for a in info["project"]["authors"]])
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
============================ ================================== ================================= ==================================== ===================================== ================================= ===================================== ====================================== ======================================== ======================================

docs/source/shared/style_tab.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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|

pyfeyn2/interface/hepmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from smpl_doc.doc import deprecated
44

55
event_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)

pyfeyn2/render/root/rootrender.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ docs = [
7272
"sphinx_autobuild",
7373
"sphinx_math_dollar",
7474
"myst-parser",
75-
"toml",
7675
]
7776
test = [
7877
"pytest",

0 commit comments

Comments
 (0)