r/ScientificComputing • • 1d ago

A modeling engine that makes a badly specified scientific model fail loudly instead of producing a nice graph

Repo: https://github.com/Furox-Art/axiomize - PyPI axiomize 1.15.0, MIT, Python 3.11+.

You describe a model as a versioned, machine-readable Model IR: variables with units, parameters with bounds and priors, equations, constraints, assumptions and a validity domain. The engine validates it dimensionally and numerically before it runs.

The failure it targets: a model runs, produces a convincing graph, and nobody can tell whether the equations are physically reasonable or whether anyone can re-run it.

What it does: mandatory units (require_units=True is fail-closed, and a separate audit lists every symbol that silently defaulted to dimensionless); dimensional and scale checks, so a rate in 1/day integrated in seconds is caught instead of quietly producing a number 86400x off; calibration, uncertainty and sensitivity analysis; portable export to SBML L3V2, CellML 2.0 and Modelica, with the IR's units and assumptions carried in an annotation block so the artifact keeps its own context. Interfaces are CLI, REST and an MCP server.

One honest limit: it does not make a bad model good. It makes a bad model fail loudly. A dimensionally consistent model with wrong equations passes.

0 Upvotes

1 comment sorted by

6

u/salasi 1d ago

Slop of the day award