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

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

src/n/e/NeuroTools-0.2.0/test/test_analogs.py   NeuroTools(Download)
    def testCreateAnalogSignal(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1)
        assert len(sig) == 10000
 
    def testCreateAnalogSignalWithTstart(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1, 10)
    def testCreateAnalogSignalWithTstartTstop(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1, 10, 1010)
        self.assertEqual(len(sig), 10000)
        self.assertEqual(sig.t_start, 10.0)
        self.assertEqual(sig.t_stop, 1010.0)
    def testTimeAxis(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1)
        assert len(sig.time_axis() == len(sig)+1)
 
    def testTimeSlice(self):
        sig = analogs.AnalogSignal(np.sin(np.arange(10000.)), 0.1)