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 testAddOffset(self): spk = spikes.SpikeTrain(numpy.arange(0,1010,10)) spk.time_offset(50) assert (spk.t_start == 50) and (spk.t_stop == 1050) and numpy.all(spk.spike_times == numpy.arange(50,1060,10))