Search found 17 matches

by ryang
Fri Mar 23, 2018 1:18 pm
Forum: NEURON + Python
Topic: Accessing neuron vectors stored in a python list
Replies: 3
Views: 3341

Re: Accessing neuron vectors stored in a python list

Yes! Thank you. For anyone else's future reference my code adjustment is shown.

Code: Select all

syn_g_rec_list = []
for i in range(len(syn)):
	syn_g_rec_list.append(h.Vector(h.tstop))
	syn_g_rec_list[i].record(syn[i]._ref_g,1)
by ryang
Thu Mar 22, 2018 7:44 pm
Forum: NEURON + Python
Topic: Accessing neuron vectors stored in a python list
Replies: 3
Views: 3341

Accessing neuron vectors stored in a python list

I am trying to access neuron vector objects stored in a python list that have recorded the conductances at a synapse ( syn is a list of mod objects in code below). I cannot figure out how to access them from the list so that I can sum them up and plot the trace. The code I have to create the list is...