Search found 2 matches
- Wed Jun 19, 2013 12:06 pm
- Forum: NEURON + Python
- Topic: Numpy array to hoc vector
- Replies: 2
- Views: 2873
Re: Numpy array to hoc vector
That solved the problem. Thank you!
- Wed Jun 12, 2013 4:15 pm
- Forum: NEURON + Python
- Topic: Numpy array to hoc vector
- Replies: 2
- Views: 2873
Numpy array to hoc vector
I'm able to convert a hoc vector to a numpy array using: nrnpython("import neuron") nrnpython("from neuron import h") nrnpython("xref = array('d',h.refSTNv)") But I am unable to convert a numpy array back to hoc. The following code gives me the error: Traceback (most re...