strange section count result
Posted: Sun Feb 01, 2015 2:40 pm
Hello there,
Using a "Hippo" template, I generated two cells "Hippos". "dendrite" and "user5" are declared public in the template and I know that each cell has 196 sections. Now I want to group dendrite and user5 of each cell separately into two references "dend1", "dend2" and also count sections for double check. It seems a very easy task but I couldn't make it to work. Actually it counts sections of both cells and at the end, counter "index" is two time 196. I past the piece of the code I wrote for this here. Could you see any obvious mistake?
Thanks
Using a "Hippo" template, I generated two cells "Hippos". "dendrite" and "user5" are declared public in the template and I know that each cell has 196 sections. Now I want to group dendrite and user5 of each cell separately into two references "dend1", "dend2" and also count sections for double check. It seems a very easy task but I couldn't make it to work. Actually it counts sections of both cells and at the end, counter "index" is two time 196. I past the piece of the code I wrote for this here. Could you see any obvious mistake?
Thanks
Code: Select all
objref dend[TOTALDEND]
index = 0
forsec Hippos[0].dendrite {
dend[index] = new SectionRef()
index += 1
}
forsec Hippos[0].user5 {
dend[index] = new SectionRef()
index += 1
}
printf("*********Index: %g ************\n", index)