Skip to content

Make tovar public - #5120

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:tovar-public
Sep 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:tovar-public

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Note: please ignore this PR until it has been reviewed by @ChrisRackauckas.

What changed and why

toparam is public and documented; its inverse tovar (mark a symbolic as an unknown) was not, although downstream discretizers need it. The NeuralPDE parser rewrite (SciML/NeuralPDE.jl#1161) uses it to promote PDESystem parameters to optimization unknowns for inverse problems, and ExplicitImports rejects the non-public import. This adds tovar to the @public list and to the variables API docs next to toparam. No code change.

Verification

Two-line change (public declaration and a docs entry); tovar already has a docstring so checkdocs is 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

`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
ChrisRackauckas marked this pull request as ready for review September 12, 2026 13:53
@ChrisRackauckas
ChrisRackauckas merged commit 683dd70 into SciML:master Sep 12, 2026
105 of 110 checks passed
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]>
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