nest / nest-simulator

The NEST simulator
http://www.nest-simulator.org
GNU General Public License v2.0
526 stars 359 forks source link

Setting parameters in cm_default after neuron creation #2789

Open epastorelli opened 1 year ago

epastorelli commented 1 year ago

Is your feature request related to a problem? Please describe. Missing feature in cm_default neuron model: setting parameters after neuron creation with SetStatus command, as in other neuron models

In the cm_default model, the neuron parameters can be set at creation time (more exactly, when compartments are created). After this time, they can’t be modified anymore. As an example, consider the possibility that users need to change the value of one single parameter. For instance they could need to change the coupling between compartments to simulate what happens entering different brain states (sleep, awake, etc.).

Describe the solution you'd like The analogous of the nest.SetStatus(...) available for other neuron models would give the possibility to modify the values of the parameters even after the neuron creation.

Describe alternatives you've considered At the moment, as an alternative I'm considering to destroy the whole population of cm_default neurons and to create an analogous population (of cm_default neurons) with the new parameters (or even all the previous parameters plus the only few changed), taking care to dump and restore the connectivity fron the old to the new network.

WillemWybo commented 1 year ago

Right now, we can only add compartments through nest.Setstatus, but not access them. I.e. we can do something like

# create a model with three compartments
cm = nest.Create('cm_default')
cm.compartments = [
    {"parent_idx": -1, "params": soma_params},
    {"parent_idx":  0, "params": dend_params},
    {"parent_idx":  0, "params": dend_params}
]

but we should be able to do something like

cm.compartments[1] = {"params": parameters_dict_with_new_params}

Do you know if this is feasible @jougs @hakonsbm ?

github-actions[bot] commented 11 months ago

Issue automatically marked stale!