Hi Alberto,
So, I kindly ask you if there is a way in PyNN to manage the solver embedded in the backend simulators, as for Brian and maybe the others.
I am no expert on PyNN, but I don't think there is a generic
mechanism to set the solver. Some of the Brian models included in
PyNN define a solver (e.g. the adaptive exponential IF models use
RK2), but most don't and therefore fall back to Brian's default
selection. In your example, it decides to use forward Euler, since
it cannot use exact integration for your equations.
Specifically for Brian, you can set the `method_choice` attribute of `brian2_group.state_updater` – but obviously this won't work for other backends. For example:
hh = sim.Population(1, sim.HH_cond_exp(i_offset=0.2),
label="HH_cond_exp")
hh.brian2_group.state_updater.method_choice = 'exponential_euler'
Hope that helps!
Marcel
PS:
While simulating, there is warning about the numerical integrator which Brian selected.
This is the warning:INFO No numerical integration method specified for group 'neurongroup_1', using method 'euler' (took 0.01s, trying other methods took 0.03s). [brian2.stateupdaters.base.method_choice]
And it says that "brian2.stateupdaters.base.method_choice" should define the solver; but this is native Brian syntax.
Two minor nitpicking comments on this:
1. this isn't a warning but an "info" message, to make the user aware of a choice that Brian made
2. The [brian2.stateupdaters.base.method_choice]
is a category/label for the log message, not how you'd define
the solver
--
You received this message because you are subscribed to the Google Groups "Neural Ensemble" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neuralensembl...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neuralensemble/16f612b6-2265-4022-8b32-610b5724cbc6n%40googlegroups.com.