You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 81d8742
Browse filesBrowse the repository at this point in the historyBrowse files
assignments_to_experiments: fix lost switches, dropped changes and scope gaps
- A switch exactly at the start of a later period was lost when that period
did not change any symbol of the assignment, e.g. `piecewise(0, time < 10,
1)` with a period at t = 10, or `time <= 0` after preequilibration. A later
period now also sets the value when it differs from the value at the end
of the previous period.
- The condition changes of every symbol of a converted assignment were
dropped, even when the model still used the symbol elsewhere, e.g. a dose
that also enters a reaction. They are now only dropped if nothing else
(the model, an observable, a condition change) refers to the symbol.
- Time-dependent initial assignments were converted into switches, but SBML
evaluates them once, at the start of the simulation. They now stay in the
model.
- At preequilibration, which starts the experiment, a value that referred
to model parameters outside the parameter table failed the lint. Those
parameters now take their model values, as at the first period.
- An assignment to a species or compartment crashed with an AttributeError;
it now raises NotImplementedError.
- A problem without time-dependent assignments was still changed: an
experiment that only preequilibrates got an empty period at t = 0.
`test_assignments_to_experiments` and `_unused_condition_id` used an
initial assignment to mean a switching rule and now use an assignment rule. `_validate` relied on an
estimated parameter with a time-dependent initial assignment; it now uses a
ramp whose generated slope parameter collides with an observable parameter.
The converted benchmark problems (Brannmark_JBC2010, Fujita_SciSignal2010,
Isensee_JCB2018, Raimundez_PCB2020) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments