nest-simulator
nest-simulator copied to clipboard
Properly control validity of NodeCollections and SynapseCollections with hashes
NodeCollection
s and SynapseCollection
s remain existent in Python even after a ResetKernel()
. We currently protect against failing C++ assertions on set()
/get()
on SynapseCollection
by checking against an empty network, but that is approximate at best.
A robust solution would be to generate a time-based hash every time ResetKernel()
is called. Each NodeCollection
is assigned the kernel hash valid when it is created, and any operation using the NodeCollection
to interact with the kernel checks that the NC-hash is equal to the current kernel hash.
For SynapseCollection
s, one can do things correspondingly, but here a new hash should be set every time connections_have_changed
is set to true. The "no longer valid" warning can then disappear, as the user will get an error.
Issue automatically marked stale!