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

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

src/n/e/NeuroTools-0.2.0/test/test_spikes.py   NeuroTools(Download)
        poisson_times = numpy.cumsum(isi)*1000. # To convert the spikes_time in ms
        spk = spikes.SpikeTrain(poisson_times)
        hist = spk.time_histogram(5000)
        N = len(hist) - 1
        assert numpy.all((30 < hist[0:N]) & (hist[0:N] < 60))