Skip to content

Comments

Raise ValueErrors and expose is_inconsistent helper function to Python#365

Merged
ImkoMarijnissen merged 2 commits intoConSol-Lab:mainfrom
IgnaceBleukx:main
Feb 11, 2026
Merged

Raise ValueErrors and expose is_inconsistent helper function to Python#365
ImkoMarijnissen merged 2 commits intoConSol-Lab:mainfrom
IgnaceBleukx:main

Conversation

@IgnaceBleukx
Copy link
Contributor

Added a helper function to the solver api to check it it's current state is inconsistent or not.

Also raised python-level value errors when we try to make a variable while the solver is in an inconsistent state.
Previously, the whole Python runtime environment would crash without showing a stacktrace.

@ImkoMarijnissen
Copy link
Contributor

Thank you for the PR!

This looks good to me.

@ImkoMarijnissen ImkoMarijnissen merged commit 15a8406 into ConSol-Lab:main Feb 11, 2026
8 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.

2 participants