• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

APN-Pucky / pyfeyn2 / 14318039396

07 Apr 2025 07:42PM UTC coverage: 67.018% (-1.3%) from 68.287%
14318039396

push

github

web-flow
Update gallery (#317)

* Add coment

* Add wikipedia like examples

Closes: #85

* Add feynmf examples

* Update gallery

* Fix serializer config indent

* No more feynml particle access

* dot2tex fixes

* clean

* add xcolor

* old dot2tex

* more fixes

* Fixed versions

* again

* again...

* uff

* Final

* more

* Timeout mermaid requests

* None on timeout

9 of 16 new or added lines in 4 files covered. (56.25%)

108 existing lines in 6 files now uncovered.

2160 of 3223 relevant lines covered (67.02%)

0.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.12
/pyfeyn2/auto/__init__.py
1
import numpy as np
1✔
2

3
from pyfeyn2.auto.bend import auto_bend
1✔
4
from pyfeyn2.auto.debug import auto_debug
1✔
5
from pyfeyn2.auto.label import auto_label
1✔
6
from pyfeyn2.auto.position import auto_align_legs, auto_vdw
1✔
7

8

9
def auto_default(
1✔
10
    fd,
11
    auto_position=True,
12
    auto_position_legs=True,
13
    debug=False,
14
):
15
    if auto_position:
1✔
16
        # remove all unpositioned vertices
17
        if auto_position_legs:
1✔
18
            fd = auto_align_legs(
1✔
19
                fd,
20
                incoming=[(0, i) for i in np.linspace(0, 10, len(fd.get_incoming()))],
21
                outgoing=[(10, i) for i in np.linspace(0, 10, len(fd.get_outgoing()))],
22
            )
23
        p = [v for v in fd.vertices if v.x is None or v.y is None]
1✔
24
        if len(p) > 0:
1✔
25
            fd = auto_vdw(fd, points=p)
1✔
26
        # if auto_position_legs:
27
        #    auto_remove_intersections_by_permuting_legs(fd, adjust_points=True)
28
        #    if len(p) > 0:
29
        #        fd = auto_vdw(fd, points=p)
30
    auto_label([*fd.propagators, *fd.legs])
1✔
31
    fd = auto_bend(fd)
1✔
32
    # Last step enable debug
33
    if debug:
1✔
UNCOV
34
        auto_debug(fd)
×
35
    return fd
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc