def createPassiveChannel(self, chan): epath = '%s/%s' % (self.lib.path, chan.id) if moose.exists(epath): mchan = moose.element(epath) else: mchan = moose.Leakage(epath) logger_.info('%s: Created %s for %s' % (self.filename, mchan.path, chan.id)) return mchan
def insert_channel(comp, ek=Ek): """Insert a constant conductance channel on compartment `comp`. Set the channel reversal potential to `Ek` """ chan = moose.Leakage('%s/chan' % (comp.path)) chan.Ek = ek moose.connect(chan, 'channel', comp, 'channel') return chan
def createPassiveChannel(chan): mchan = moose.Leakage('%s/%s' % (self.lib.path, chan.id)) if self.verbose: print(self.filename, 'Created', mchan.path, 'for', chan.id) return mchan
def LChan(name): L = moose.Leakage('/library/' + name) L.Ek = EREST L.Gbar = 1 * SOMA_A L.Gk = 1 * SOMA_A return L