Exemplo n.º 1
0
 def _makeShunt(self, compartment):
     if self.g_shunt > 1e-10:
         shunt = h.Shunt(compartment(1.))
         shunt.g = self.g_shunt  # uS
         shunt.e = self.e_eq  # mV
         return shunt
     else:
         return None
Exemplo n.º 2
0
 def _makeShunt(self):
     if self.g_shunt > 1e-10:
         shunt = h.Shunt(compartment(1.))
         shunt[-1].g = self.g_shunt  # uS
         shunt[-1].e = self.v_eq  # mV
         return shunt
     else:
         return None
Exemplo n.º 3
0
 def addShunt(self, loc, g, e_r):
     loc = MorphLoc(loc, self)
     # create the shunt
     shunt = h.Shunt(self.sections[loc['node']](loc['x']))
     shunt.g = g
     shunt.e = e_r
     # store the shunt
     self.shunts.append(shunt)
Exemplo n.º 4
0
    def addShunt(self, loc, g, e_r):
        """
        Adds a static conductance at a given location

        Parameters
        ----------
        loc: dict, tuple or :class:`neat.MorphLoc`
            The location of the shunt.
        g: float
            The conductance of the shunt (uS)
        e_r: float
            The reversal potential of the shunt (mV)
        """
        loc = MorphLoc(loc, self)
        # create the shunt
        shunt = h.Shunt(self.sections[loc['node']](loc['x']))
        shunt.g = g
        shunt.e = e_r
        # store the shunt
        self.shunts.append(shunt)