Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/e/NeuroTools-0.2.0/src/spike2/spike2channels.py   NeuroTools(Download)
def load_channel(filename,channel=1,start=None,stop=None):
    chan = son.Channel(channel,filename)
    data = numpy.array(chan.data(start=start,stop=stop))
    if chan.info.type() == 'Adc':
        dt = chan.info.dt[0]
        obj = Adc(data,dt)
    else:
        exec('obj = %s(data)'%chan.info.type())