Page 1 of 1

Save data from a loop in data acquired from neuron

Posted: Wed Feb 24, 2021 8:51 am
by OronKotler
Hi, I am trying to put the values here in an array,
and tried different ways in order to implement this.
What is the best way to do it?

secAIS=h.AIS
for seg in secAIS.allseg():
AIS=print('%g %g %g' % (seg.x * secAIS.L, seg.area(), seg.ri()))

this code was adapted from here:
https://www.neuron.yale.edu/neuron/stat ... metry.html

Re: Save data from a loop in data acquired from neuron

Posted: Wed Feb 24, 2021 10:50 am
by ted
append ?