Ticket #45 (new enhancement)

Opened 8 months ago

Last modified 2 months ago

Allow `setup()` and `end()` to be called more than once from a given script

Reported by: apdavison Assigned to: apdavison
Priority: major Milestone: 0.5.0
Component: neuron Version: trunk
Keywords: Cc:

Description

The neuron module was really designed to have setup() and end() run only once per script. It is currently possible to call setup() more than once, but only to change the timestep. The network time is not reinitialised to zero, for example. Calling end() destroys the ParallelContext instance and it is not recreated when calling setup() a second time.

It would be desirable to be able to reinitialise the network, so a redesign with this in mind is needed.

I am not sure whether these issues also apply to the nest2 and pcsim modules.

Change History

09/18/08 16:32:14 changed by mschmucker

Just wanted to note that in r461 (and possibly earlier versions), pyNN.neuron works for multiple setup()/end() calls. But simulation time increases for subsequent simulation runs. I suspect the reason might be that variables and cells are not deleted at the subsequent call to setup() and still hang around in the simulation. Is this correct?

Is it possible to clean up all unneeded cells and variables upon setup()?