Skip to content

Commit eb351bc

Browse files
committed
Add draft test.
1 parent 53c247a commit eb351bc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from spikeinterface.core.numpyextractors import NumpyRecording
2+
import numpy as np
3+
4+
sample_frequency = 30_000
5+
sat_value = 5
6+
data = np.random.uniform(low=-0.5, high=0.5, size=(150000, 384))
7+
8+
# chunk 1s so some start stops cut across a chunk
9+
# TODO: cut across segments
10+
starts_stops = [(0, 1000), (29000, 31000), (45123, 46234), (14950, 150001)] # test behaviour over edge of data
11+
channel_range = slice(5, 100)
12+
13+
for start, stop in starts_stops:
14+
data[start:stop, channel_range] = sat_value
15+
16+
recording = NumpyRecording([data] * 3, sample_frequency) # TODO: all segments the same for now
17+
18+
# pass recording to new function
19+
# check start, stops, channels match
20+

0 commit comments

Comments
 (0)