nrniv: syntax error

in 50knet.hoc near line 1402

killList = cvode.netconlist(MossyCell[killWhich.x(h)],"","")

I've perused the surrounding code and tried multiple fixes, but none of them work. Here is the surrounding code:

Code: Select all

```
objref killList, killWhich
//******************************************************************************************
proc killHilarCells () { local h, i, j, killCount, numKill, cell2Kill, percentKill, killIndex
killCount = 0
percentKill = $1
killList = new List()
synRandomizer = nmcell - 1
setupSynRand()
numKill = int(percentKill * nmcell / 100)
if (numKill != 0) {
killWhich = new Vector(numKill, -1)
while (killCount != numKill) {
cell2Kill = synRand.repick()
if (killWhich.contains(cell2Kill) == 0) {
killWhich.x(killCount) = cell2Kill
killCount += 1
}
}
for h = 0, killWhich.size - 1 {
killList = cvode.netconlist(MossyCell[killWhich.x(h)],"","")
print "Now killing MossyCell #",killWhich.x(h)
i = int((mcellPos.x(killWhich.x(h))-0.5*dentateBinSize)/dentateBinSize)
for j = 0, killList.count-1 {
killIndex = nclist[i].index(killList.object(j))
if (killIndex != -1) {
nclist[i].remove(killIndex)
}
}
}
killList.remove_all()
}
killCount = 0
numKill = int(percentKill * nmcell / 100)
if (numKill != 0) {
killWhich.x[0]= -1
while (killCount != numKill) {
cell2Kill = synRand.repick()
if (killWhich.contains(cell2Kill) == 0) {
killWhich.x(killCount) = cell2Kill
killCount += 1
}
}
for h = 0, killWhich.size - 1 {
killList = cvode.netconlist(HIPPCell[killWhich.x(h)],"","")
print "Now killing HIPPCell #",killWhich.x(h)
i = int((hcellPos.x(killWhich.x(h))-0.5*dentateBinSize)/dentateBinSize)
for j = 0, killList.count-1 {
killIndex = nclist[i].index(killList.object(j))
if (killIndex != -1) {
nclist[i].remove(killIndex)
}
}
}
killList.remove_all()
}
}
```