I have a problem with my model written using NEURON. I have a model that runs, but doesn't work properly, so I wanted to brake it up into parts to be able to diagnose the exact issue. However, when trying to isolate only the interneuron (the whole model consists of 1 interneuron and 4 pyrams), it seems that jupyter notebook kernel dies every time I try to run h.continuerun(). After looking into it, I managed to discover that the radial_diffusion function is crucial for the model to run, however in order to run the function I need to create pyramidal cells earlier and that's exactly what I don't want to do. The code looks like this:
Code: Select all
def radial_diffusion1(pyrams: List[Pyramidal], isoma: InterNeuron):
thisPyram = pyrams[0]
soma2 = pyrams[1].soma
dend2 = pyrams[1].dend
for sec in thisPyram.pyram:
for seg in sec:
x = seg.x
if x != 0 and x != 1:
# setpointer soma1.ko2_saccum1(x), soma2.ko(x)
h.setpointer(soma2(x)._ref_ko, "ko2", thisPyram._saccum_x(x))
h.setpointer(dend2(x)._ref_ko, "ko2", thisPyram._daccum_x(x))
h.setpointer(soma2(x)._ref_nao, "nao2", thisPyram._saccum_x(x))
h.setpointer(dend2(x)._ref_nao, "nao2", thisPyram._daccum_x(x))