Skip to content

Release 0.11.0: Clearer errors, opt-in model check, sdist with C++ - #14

Merged
areenberg merged 7 commits into
masterfrom
anders_development
Nov 11, 2026
Merged

areenberg merged 7 commits into
masterfrom
anders_development

Conversation

@areenberg

Copy link
Copy Markdown
Owner

Summary

  • Errors: errors now raise Python exceptions (ValueError, TypeError, RuntimeError, IndexError, OSError) instead of calling sys.exit. Calling methods in the wrong order (a get-method before solve(), solve() before mdp(), or mdp() twice) now raises an error instead of returning garbage values or crashing.
  • Convergence: a new ConvergenceWarning is shown when the solver doesn't converge, and a new hasConverged() method reports whether it did.
  • Model check: a new checkModel() method returns a list of problems with the model. It is opt-in and never runs by default.
  • Loaders: loading from lists or files now stops with an error on negative indices and malformed lines instead of crashing.
  • Packaging: pyproject.toml has moved to the repository root, so the source distribution (sdist) now includes the C++ code. There are new wheels for Python 3.15, and CI now installs and tests the sdist.
  • Tests and docs: three new tests (test_order, test_output, test_checkmodel). The README examples are fixed, and only one README and one LICENSE are left, at the root.
  • Version: 0.11.0.

Behaviour change

Code that caught SystemExit from MDPSolver now needs to catch the exceptions listed above.

@areenberg
areenberg merged commit cd6bf06 into master Nov 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant