Open TS-CUBED opened 2 years ago
p = list_params(ml)
update_list!(p, :stimulus_protocol₊IstimPeriod, 250.0)
What are these? I think it should just use the normal MTK way of doing these things.
That code snippet is from the example in the Readme.md on this repo (CellMLToolkit). It's a bit further down on the page in the Beeler et al. case.
This issue is kind of linked to: https://github.com/SciML/ModelingToolkit.jl/issues/1810
Ahh yeah, we should finish the remake
dispatch improvements and just delete that weird stuff from the README
A CellML model is a good example for the problem I mean in that. Since all the parameters are set in the model already, it would be a major pain to have to create the whole parameter map (which in some of them can be 1000s) if I only want to change 10.
A remake that takes a partial parameter map would be a(nother) killer feature in that application.
Definitely agreed. It's in the plan, just needs hands.
Sorry to bother here, but ODEProblem
with CellModel
expects a vector with the parameters and not the vector with the maps: prob = ODEProblem(ml, (0, 10000); p=last.(p))
"solves" this.
I am trying to change the parameter in a cellML model, but the method in the Readme/Tutorial does not work anymore.
Steps to reproduce:
Error occurs:
Note: That top-level scope is just the actual model I am working on. But the error occurs on the model from the tutorial as well.
Versions: Julia 1.8.0 [03cb29e0] CellMLToolkit v2.7.1