Can't delete point process after accessing range variable
Posted: Mon Apr 20, 2015 3:02 pm
Greetings,
I have a problem where point processes are not being removed from NEURON (7.3) even though all python references are apparently lost. Here is my simple point process:
..and a script that demonstrates the problem:
Any hints for me?
Thanks!
I have a problem where point processes are not being removed from NEURON (7.3) even though all python references are apparently lost. Here is my simple point process:
Code: Select all
NEURON {
POINT_PROCESS TestPointProc
RANGE rangeval
}
ASSIGNED {
rangeval (1)
}
Code: Select all
import neuron
s = neuron.h.Section()
m = neuron.h.TestPointProc(0.5, sec=s)
assert len(neuron.h.List('TestPointProc')) == 1
# test executes correctly if this line is removed:
m.rangeval
del m
assert len(neuron.h.List('TestPointProc')) == 0
Thanks!