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
One common case where this is useful is if you want to run stochastic instead of ODE simulations.
48
+
49
+
In the very unlikely case that you need fine-grained control over the SBML import, you can create an SBML.jl `Model` (we strongly recommend manually running `SBMLToolkit.checksupport_file("my_model.xml")` before)
50
+
51
+
```julia
52
+
using SBML
53
+
54
+
mdl =readSBML("my_model.xml", doc ->begin
55
+
set_level_and_version(3, 2)(doc)
56
+
convert_promotelocals_expandfuns(doc)
57
+
end)
58
+
```
59
+
60
+
The conversion to SBML level 3 version 2 is necessary, because older versions are not well supported in SBMLToolkit. `convert_promotelocals_expandfuns` basically flattens the SBML before the import. Once you have obtained the `Model`, you can convert it to a `ReactionSystem` and `ODESystem`.
0 commit comments