Repository navigation
Preserve overridable SBML parameter defaults - #239
ChrisRackauckas merged 1 commit into
Conversation
|
All 10 GitHub checks completed successfully for commit This verifies the SBML parameter-default fix. The separate full EasyModelAnalysis Carcione example has not completed successfully: its long-running validation was terminated, and an additional ensemble/remake failure is under investigation. I am not claiming the downstream example is fixed by this PR alone. 🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; session: local transcript |
Store literal SBML parameter values as initial conditions under Catalyst 16 so callers can override them when constructing or remaking problems. Keep parameter-only symbolic expressions as immutable bindings. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]> Agent-Harness: Codex CLI 0.151.0 Agent-Model: gpt-5.6-sol Agent-Session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d
70a60f4 to
0a861d4
Compare
|
Rebased onto the merged assignment-rule fix at #240 . The parameter-default change is unchanged; current head is 0a861d4 . Fetched and verified the remote branch had no intervening contributor commits before the lease-protected update. Local Julia 1.11.9 verification on this head: GROUP=Core julia --project=SBMLToolkit-root -e 'using Pkg; Pkg.test()'
GROUP=QA julia --project=SBMLToolkit-root -e 'using Pkg; Pkg.test()'Both commands exited 0. Runic, diff spelling, and Please continue to ignore this draft until reviewed by @ChrisRackauckas. 🤖 Rebase and validation by Codex CLI 0.153.4 (model: gpt-6-astra; session: local transcript |
|
Terminal validation audit for commit 0a861d4, rebased onto the merged assignment-rule fix #240:
This remains a draft and should be ignored until reviewed by @ChrisRackauckas. 🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; session: local transcript |
- Preserve overridable SBML parameter defaults (#239) 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]>
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed
Catalyst 16 distinguishes overridable initial/default values from immutable symbolic parameter bindings. SBMLToolkit's Catalyst 16 compatibility path classified every literal SBML parameter value as a binding, so standard SBML parameter defaults could not be overridden when constructing or remaking a problem.
This classifies values with no symbolic dependencies as
initial_conditions, while retaining parameter-only symbolic expressions asbindings. Expressions that reference a state remain initial conditions, preserving the existing handling required by Catalyst's binding validation.The regression begins at
d2dcf2c405db1bfbccfa4f52ed44348dc2bd4205, introduced in PR 201. Its parent works with the prior supported Catalyst 15 stack (Catalyst=15.0.11 ModelingToolkit=9.84.0 retcode=Success).Failing before
On clean
mainat3222444, the Carcione model reaches the following failure after switching its removed reaction-system conversion to the publicODESystem(mdl)constructor:Applying only the new initial-condition expectation to the unfixed source also fails in
test/systems.jl:Passing after
The regression test additionally constructs an
ODEProblemwithk1 => 2.0and observesoverride_prob.ps[k1] == 2.0. It also verifies that the literalk1 = 1.0is an initial condition while the genuinely symbolic initial assignmentk2 = k1remains a binding.No dependencies or compatibility bounds change. SBMLToolkit and Catalyst are MIT-licensed.
🤖 Generated with Codex CLI 0.151.0 (model: gpt-5.6-sol; session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d)