ó
ªªàUc @ s; d Z d d l m Z m Z d „ Z d „ Z d „ Z d S( s; Contains file reading and writing functions
vector_list=read_vec("filename.dat")
returns a vector_list that then can be set to a neuron vector
nrn_vec = h.Vector(read_vec("filename.dat"))
write_vec("filename.dat", nrn_vec)
will write the nrn_vec to a file in a format readable by this program
matlab, excel, etc.
iÿÿÿÿ( t ht guic C s7 g } x* t | d ƒ D] } | j t | ƒ ƒ q W| S( Nt r( t opent appendt eval( t filenamet vector_listt line( ( s utilities.pyt read_vec s c C s t j t | ƒ ƒ S( N( R t VectorR ( R ( ( s utilities.pyt read_nrn_vec s c C sK | j ƒ } t | d ƒ } x | D] } | j d | ƒ q" |