Repository navigation
Make tovar public - #5120
Merged
ChrisRackauckas merged 1 commit intoSep 12, 2026
Merged
Make tovar public#5120
Conversation
`toparam` is public and documented; its inverse `tovar` (mark a symbolic as an unknown) was not, although downstream discretizers need it, for example to promote `PDESystem` parameters to optimization unknowns in the NeuralPDE parser rewrite (SciML/NeuralPDE.jl#1161). Declare it `public` and list it in the variables API docs next to `toparam`. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]> Agent-Harness: 2.1.269 (Claude Code) Agent-Model: claude-fable-5-1 Agent-Session: https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax Claude-Session: https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax
ChrisRackauckas
marked this pull request as ready for review
September 12, 2026 13:53
This was referenced Sep 12, 2026
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 12, 2026
- Make tovar public (#5120) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
- Add constraints_to_penalties: lower constraints to quadratic penalty costs (#5111) - Fix QA: approve the `limited`/`constraints_to_penalties` API additions (#5116) - Concretize initialization problems once at construction (#5062) - Make tovar public (#5120) - Fix SciCompDSL model macro hygiene (#5058) - Release ModelingToolkitBase 1.71.0 (#5126) - Forward ProblemTypeCtx metadata to OptimizationProblem (#5115) - Release ModelingToolkitBase 1.71.1 (#5127) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
#5120 declared `tovar` public in ModelingToolkitBase without adding it to `REEXPORTED_API`, so the outer `No unapproved public reexports` audit fails on master (Tests / QA on 683dd70). Agent-Harness: Claude Code 2.1.269 Agent-Model: claude-fable-5-1 Agent-Session: https://claude.ai/code/session_01ReTWnXHfsN2gZziNYQaCAQ Claude-Session: https://claude.ai/code/session_01ReTWnXHfsN2gZziNYQaCAQ Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
toparamis public and documented; its inversetovar(mark a symbolic as an unknown) was not, although downstream discretizers need it. The NeuralPDE parser rewrite (SciML/NeuralPDE.jl#1161) uses it to promotePDESystemparameters to optimization unknowns for inverse problems, and ExplicitImports rejects the non-public import. This addstovarto the@publiclist and to the variables API docs next totoparam. No code change.Verification
Two-line change (public declaration and a docs entry);
tovaralready has a docstring socheckdocsis satisfied. Not run: the ModelingToolkitBase test suite (no behavior change).🤖 Generated with Claude Code (model: claude-fable-5-1)
https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax