Skip to content

v2.6.0

Choose a tag to compare

@Holger-Bartel Holger-Bartel released this 01 Dec 16:06

What's Changed

  • Faster: Model.compute keeps one input buffer instead of re-stacking all rows per equation — about 2.7x faster for 80 variables. Results are bit-identical.
  • Deterministic graphs: the model graph is built in a fixed order, so the DOT/SVG output no longer depends on Python's hash randomization.
  • Clear errors instead of silent NaN: ValueError for a wrong number of equations, unknown symbols, equations not in order of computation, a final_var that is not a y variable, duplicate variables, and unknown parameter overrides. Plain numbers are accepted as constant equations.
  • Robust drawing: no crash when all effects are zero or a graph is empty; double quotes in names and labels are escaped.
  • New default graph style: Helvetica font, dark grey edge labels placed close to their edges. Pass graph_options_str to keep the previous look.
  • Logging instead of print in create_graphs, UTF-8 file output, type hints and docstrings; remnants of the former PyTorch estimation removed.
  • Tests: golden reference tests, more unit tests, CI on Python 3.9–3.14.

in #118

Full Changelog: v2.5.5...v2.6.0