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)
    def testTime_Slice(self):
        spk = spikes.SpikeList(self.spikes,range(10), t_start=0)
        new_spk = spk.time_slice(0, 1000.)
        assert (new_spk.t_start == spk.t_start) and (new_spk.t_stop == 1000.)