You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [3]: a=neo.AnalogSignalArray([1,2,3]*pq.mV,sampling_period=1*pq.ms)
In [4]: printa
[ 1.2.3.] mV# This is correctIn [6]: a.time_slice(0*pq.ms,1*pq.ms)
Out[6]:
AnalogSignalArrayin1.0mVwith1float64valueschannelindex: Nonesamplingrate: 1.01/mstime: 0.0sto0.001s# This is wrong: it should return an array of length 2 (for time points 0 ms and 1 ms)In [7]: a.time_slice(0*pq.ms,1.1*pq.ms)
Out[7]:
AnalogSignalArrayin1.0mVwith1float64valueschannelindex: Nonesamplingrate: 1.01/mstime: 0.0sto0.001s# This is correctIn [8]: a.time_slice(0*pq.ms,1.7*pq.ms)
Out[8]:
AnalogSignalArrayin1.0mVwith2float64valueschannelindex: Nonesamplingrate: 1.01/mstime: 0.0sto0.002s
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: