QRules 0.9.6
Release 0.9.6
See all documentation for this version here.
💡 New features
Topology is now ordered (#137)
This can be used to create a unique, deterministic ordered list of Topology
instances. See ComPWA/ampform#6, where one needs a unique way of picking a reference topology.
Implemented Topology.relabel_edges() method (#138)
See how to use this method to permutate final state IDs in a Topology
case here.
qrules.io.asdot() function now accepts Graphviz attributes (#139)
Accept Graphviz attributes in qrules.io.asdot()
, so that the edges, nodes and overall DOT visualization of StateTransition
s etc. can be styled. See here how to use.
Number of threads can now be set globally (#140)
Added a new class NumberOfThreads
under the settings
module that makes it possible to set the number of threads globally. This is mainly useful in the tests, where we want to run the StateTransitionManager
single-threaded for test coverage (#11). Previously this was done by setting number_of_threads=1
in each test.
🐛 Bug fixes
Final state IDs in all StateTransitions match the order of the final_state argument in generate_transitions() (#145)
Closes #143
Compare this visualization in v0.9.5 with the one for this PR.
- 10379d2 adds a test that fails the check described in #143
- 2e91cb4 fixes that test
📝 Documentation
Default graphviz background is now transparent (#141)
Follow-up to #139. Consequence is that exported PNG and SVG files have no background. Preview here.
Get old behaviour with qrules.io.asdot(..., bgcolor="white")
.
Code examples are automatically linked to reference documentation (#147)
All code examples are now clickable with links to corresponding reference documentation (also external links APIs) with sphinx-codeautolink
. Closes ComPWA/compwa.github.io#106
🖱️ Developer Experience
Changed upgrade cron job to bi-weekly (#135)
Installed jupyterlab-myst for MyST editing (#147)
Installed jupyterlab-myst
Updated black formatting style (#147)
Updated to the first non-beta black release 22.1.0. Most important style effect: no space around power operator **
.