コード例 #1
0
ファイル: neuronmodel.py プロジェクト: sunzhenyang2018/NEAT
    def addNMDASynapse(self, loc, tau, tau_nmda, e_r=0., nmda_ratio=1.7):
        """
        Adds a single-exponential conductance-based synapse with an AMPA and an
        NMDA component

        Parameters
        ----------
        loc: dict, tuple or :class:`neat.MorphLoc`
            The location of the current.
        tau: float
            Decay time of the AMPA conductance window (ms)
        tau_nmda: float
            Decay time of the NMDA conductance window (ms)
        e_r: float (optional, default ``0.`` mV)
           Reversal potential of the synapse (mV)
        nmda_ratio: float (optional, default 1.7)
            The ratio of the NMDA over AMPA component. Means that the maximum of
            the NMDA conductance window is ``nmda_ratio`` times the maximum of
            the AMPA conductance window.
        """
        loc = MorphLoc(loc, self)
        # create the synapse
        syn = h.exp_AMPA_NMDA(self.sections[loc['node']](loc['x']))
        syn.tau = tau
        syn.tau_NMDA = tau_nmda
        syn.e = e_r
        syn.NMDA_ratio = nmda_ratio
        # store the synapse
        self.syns.append(syn)
コード例 #2
0
 def addExpSyn(self, loc, tau, e_r):
     loc = MorphLoc(loc, self)
     # create the synapse
     syn = h.exp_AMPA_NMDA(self.sections[loc['node']](loc['x']))
     syn.tau = tau
     syn.e = e_r
     # store the synapse
     self.syns.append(syn)
コード例 #3
0
 def addNMDASynapse(self, loc, tau, tau_nmda, e_r=0., nmda_ratio=1.7):
     loc = MorphLoc(loc, self)
     # create the synapse
     syn = h.exp_AMPA_NMDA(self.sections[loc['node']](loc['x']))
     syn.tau = tau
     syn.tau_NMDA = tau_nmda
     syn.e = e_r
     syn.NMDA_ratio = nmda_ratio
     # store the synapse
     self.syns.append(syn)
コード例 #4
0
ファイル: neuronmodel.py プロジェクト: sunzhenyang2018/NEAT
    def addExpSyn(self, loc, tau, e_r):
        """
        Adds a single-exponential conductance-based synapse

        Parameters
        ----------
        loc: dict, tuple or :class:`neat.MorphLoc`
            The location of the current.
        tau: float
            Decay time of the conductance window (ms)
        e_r: float
           Reversal potential of the synapse (mV)
        """
        loc = MorphLoc(loc, self)
        # create the synapse
        syn = h.exp_AMPA_NMDA(self.sections[loc['node']](loc['x']))
        syn.tau = tau
        syn.e = e_r
        # store the synapse
        self.syns.append(syn)