Skip to content

Raise instead of crashing on misuse of the problem bindings - #35

Closed
Transurgeon wants to merge 1 commit into
mainfrom
binding-guards
Closed

Transurgeon wants to merge 1 commit into
mainfrom
binding-guards

Conversation

@Transurgeon

Copy link
Copy Markdown
Member
  • Derivative calls before their init step segfaulted; they now raise RuntimeError naming the init call to make.
  • u, lagrange and theta lengths were unchecked, so the engine read past the buffer and returned wrong values; they now raise ValueError.
  • update_params with no parameters, and register_params with a constant node, called exit(1) in the engine; they now raise ValueError first.

- Derivative calls before their init step segfaulted; they now raise
  RuntimeError naming the init call to make.
- u, lagrange and theta lengths were unchecked, so the engine read past the
  buffer and returned wrong values; they now raise ValueError.
- update_params with no parameters, and register_params with a constant node,
  called exit(1) in the engine; they now raise ValueError first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Transurgeon Transurgeon closed this Nov 9, 2026
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