I apologize for a very trivial question.
I have a python class which reconstructs neuron morphology from an SWF file, sets channels and so on. Now with such a nice reconstruction, I need to create 6k - 10k synapses on dendrite tree. Moreover, there are about 5 different synapses classes, which may be nested (say NMDA and AMPA in the same location, with/without STDP, etc). Of course, I don't want to create multiple synaptic objects from the same synaptic class at the same segment of a dendrite, but after few hours search, I couldn't find a simple way to define if I have at a particular position this kind of synaptic object or not.
The code below illustrates what I need:
Code: Select all
class ampa: def __init__(self,compartment,position): self.syn = h.Exp2Syn(position, sec=compartment) if there_is_an_ampa_syn_at_apical(0.23) : ampa_syn = get_ampa_synapse_object_which_was_create_at_apical(0.23) else: ampa_syn = ampa(apical,0.23) ncon = h.NetCon(some_source, ampa_syn)