Closed mstimberg closed 4 years ago
It seems to work, except you need to pass the params argument (the line above would not run).
It seems to work, except you need to pass the params argument (the line above would not run).
You only have to pass the params
if you did not run the fit before. Or maybe I misunderstood your comment?
Ah of course, I tested it without actually doing a fitting.
If you were interested in the traces of several variables after fitting (say, membrane potential and some gating variables), you had two options:
Fitter.generate
repeatedly, i.e. run the simulation several times, each time recording a different variable.NeuronGroup
and run the simulation yourself.With this PR, you can simply call
Fitter.generate
with a list of variables, and get back a dictionary with the results: