Save data from a loop in data acquired from neuron

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
OronKotler
Posts: 8
Joined: Wed Oct 31, 2018 2:03 pm

Save data from a loop in data acquired from neuron

Post 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
ted
Site Admin
Posts: 5886
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

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

Post by ted »

append ?
Post Reply