Commit 3ecae1c
committed
Set known defaults for a
CellML files contain `initial_value` fields specifying initial values
for parameters and states in the system. Retrieving these for the
`ODESystem` was already possible, but had to be done separately or as
part of the `ODEProblem` constructor defined for `CellModel`s.
Defaults are only set for simplified `ODESystem`s. Unsimplified
`ODESystem`s may contain parameters and states for which no defaults are
available resulting in errors trying to construct the `ODESystem`. These
errors will still occur when using the result of calling
`process_components` with `simplify = false`, but as noted in the code
that should only be done for debugging purposes and this functionality
is not exposed at the higher API levels.
Fixes #56.CellModels ODESystem
1 parent 2afeff5 commit 3ecae1c
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments