Search found 10 matches

by ryang
Fri Aug 24, 2018 7:42 pm
Forum: Other questions
Topic: Getting a NetCon location on a dendrite
Replies: 8
Views: 1783

Re: Getting a NetCon location on a dendrite

Okay, thanks for the push, things popped for me a bit. This is where I'm at now: print NetCon[index].postcell {x = NetCon[index].preloc print x, pop_section()} {x = NetCon[index].postloc print secname(), "( ",x,")" pop_section()} print NetCon[index].syn and it returns cell_object[0] -1 cell_object[0...
by ryang
Fri Aug 24, 2018 1:50 pm
Forum: Other questions
Topic: Getting a NetCon location on a dendrite
Replies: 8
Views: 1783

Re: Getting a NetCon location on a dendrite

Those return the locatoin on the dendrite but not the dendrite number. Given the following code: NetCon[index].postcell NetCon[index].preloc NetCon[index].postloc NetCon[index].syn the return is: cell_object[0] -1 0.9516129 synapse_receptor_nmodl[0] My preloc is a vecstim object, so as expected it r...
by ryang
Thu Aug 23, 2018 6:54 pm
Forum: Other questions
Topic: Getting a NetCon location on a dendrite
Replies: 8
Views: 1783

Re: Getting a NetCon location on a dendrite

Synapses were in the right place when I used the pointgroupmanager, for some reason I had problems using it before. Still I'd like to be able to verify things in hoc.
by ryang
Thu Aug 23, 2018 3:28 pm
Forum: Other questions
Topic: Getting a NetCon location on a dendrite
Replies: 8
Views: 1783

Re: Getting a NetCon location on a dendrite

Yes, thank you, I've read that many times. There is a postcell() method but that returns the cell. Am I even doing the right thing here? I want to comfirm that my synapses are in the right location on the dendrite of the cell after I assign them to a NetCon object.
by ryang
Wed Aug 22, 2018 6:39 pm
Forum: Other questions
Topic: Getting a NetCon location on a dendrite
Replies: 8
Views: 1783

Getting a NetCon location on a dendrite

I'm having trouble with a simple issue. What commands do I need to do to get the location of a NetCon object on a dendrite? Was playing with SectionRef() and couldn't get a parent or child, been stuck on this for a while.
by ryang
Wed Aug 15, 2018 3:00 pm
Forum: Other questions
Topic: Passing an object parameter to execute() in a function
Replies: 5
Views: 1594

Re: Passing an object parameter to execute() in a function

Thank you! Ok,I beleive I understand. I cannot declare an objref in a function or porcedure but I can return a localobj from a function and have an objref point to the returned localobj. So, back to the orignal problem. If I use excute() in a function then any objref refered to within excute() must ...
by ryang
Mon Aug 13, 2018 7:17 pm
Forum: Other questions
Topic: Passing an object parameter to execute() in a function
Replies: 5
Views: 1594

Re: Passing an object parameter to execute() in a function

I think I misunderstood the use of obfunc, I saw it as being something different than a func or proc call and hence I thought I could get away without declarying an objref outside the obfunc type function. Yet, I still have a hang up in my understanding, why can you declare tlist as a localobj in ma...
by ryang
Fri Aug 03, 2018 5:20 pm
Forum: Other questions
Topic: Passing an object parameter to execute() in a function
Replies: 5
Views: 1594

Passing an object parameter to execute() in a function

I'm am trying to build an object function that adds a cluster of synapses to a dendrite of a neuron that is defined in a class, and returns the synapse objects in a List. I would like to pass the synapse (MOD object) as a parameter in the function. To attempt this I am passing the name of the MOD ob...
by ryang
Fri Mar 23, 2018 1:18 pm
Forum: NEURON + Python
Topic: Accessing neuron vectors stored in a python list
Replies: 3
Views: 1734

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: 1734

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...