I have inherited some code that implements the "Extracellular stimulation and recording" code, and it is *almost* working perfectly, except for one glitch. The network simulation is composed of 5-compartment pyramidal cells and 1-compartment basket cells. Recording the contribution of each compartment of the pyramidal cells works perfectly well (I can tell this by saving the field traces from individual neurons), but recording from basket cells does not work. For some reason, the field recorded from basket cells is flat-lined, even when the cells are spiking. I'm pretty sure the error lies somewhere in the following process, which is defined in the template for basket cells:
Code: Select all
proc fieldrec() {
forall if (ismembrane("xtra")) {
//for (x,0) cvode.record(&er_xtra(x), extraRec, TRec)
extraRec.record(&er_xtra(x))
}
}
x is not defined in the function, so something is obviously amiss. However, I tried commenting
extraRec.record(&er_xtra(x)) and uncommenting
for (x,0) cvode.record(&er_xtra(x), extraRec, TRec), and it did nothing to solve the problem. I've also tried various other modifications, and none of them have worked. Any ideas would be much appreciated. Thanks!