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