INM-6 / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://packages.python.org/neo/
BSD 3-Clause "New" or "Revised" License
3 stars 10 forks source link

Sort spikes in spiketrains #30

Open alperyeg opened 7 years ago

alperyeg commented 7 years ago

Example:

import neo 
import quantities as pq 
st = neo.SpikeTrain([1, 0, 2, 3]* pq.ms, t_start=0*pq.ms, t_stop=3*pq.ms)
print(st) 
>>> [ 1.  0.  2.  3.] ms

should give an error or correctly sort the spikes.