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/test/test_analogs.py   NeuroTools(Download)
    def testTimeSlice(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1)
        res = sig.time_slice(0,500)
        self.assertEqual(len(res), 5000)
        res = sig.time_slice(250,750)