ComPWA / expertsystem

Rule based particle reaction problem solver on a quantum number level
http://expertsystem.rtfd.io
1 stars 3 forks source link

feat: allow hiding initial state and resonance ids #546

Closed redeboer closed 3 years ago

redeboer commented 3 years ago

Argument render_edge_id in asdot has been split into render_final_state_id, render_resonance_id, and render_initial_state_id.

Edges IDs of initial states and resonances are now hidden by default. They can be shown with the arguments of asdot:

import expertsystem as es

es.io.asdot(
    graphs,
    render_node=True,
    render_final_state_id=True,
    render_resonance_id=True,
    render_initial_state_id=True,
    collapse_graphs=True,
)

Default view of a StateTransitionGraph:

codecov[bot] commented 3 years ago

Codecov Report

Merging #546 (6e310ac) into master (e753853) will increase coverage by 0.12%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
+ Coverage   86.19%   86.31%   +0.12%     
==========================================
  Files          22       22              
  Lines        3628     3632       +4     
  Branches      884      885       +1     
==========================================
+ Hits         3127     3135       +8     
+ Misses        322      320       -2     
+ Partials      179      177       -2     
Flag Coverage Δ
unittests 86.31% <100.00%> (+0.12%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/expertsystem/io/__init__.py 88.09% <ø> (ø)
src/expertsystem/io/_dot.py 75.88% <100.00%> (+1.78%) :arrow_up:
src/expertsystem/amplitude/helicity.py 86.29% <0.00%> (+0.62%) :arrow_up: