Skip to content

Commit 7fcec58

Browse files
committed
added test_on_data
1 parent 366ff1d commit 7fcec58

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/spikeinterface/core/tests/test_whitematterrecordingextractor.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from spikeinterface.extractors import WhiteMatterRecordingExtractor, BinaryRecordingExtractor
55
from spikeinterface.core.numpyextractors import NumpyRecording
6+
from spikeinterface import get_global_dataset_folder
67

78

89
def test_round_trip(tmp_path):
@@ -33,3 +34,22 @@ def test_round_trip(tmp_path):
3334
binary_smaller_traces = binary_recorder.get_traces(start_frame=start_frame, end_frame=end_frame)
3435

3536
np.allclose(smaller_traces, binary_smaller_traces)
37+
38+
39+
def test_on_data():
40+
file_path = (
41+
get_global_dataset_folder()
42+
/ "ephy_testing_data"
43+
/ "whitematter"
44+
/ "HSW_2024_12_12__10_28_23__70min_17sec__hsamp_64ch_25000sps_stub.bin"
45+
)
46+
sampling_frequency = 25_000.0
47+
num_channels = 64
48+
recording = WhiteMatterRecordingExtractor(
49+
file_path=file_path,
50+
sampling_frequency=sampling_frequency,
51+
num_channels=num_channels,
52+
)
53+
assert recording.get_sampling_frequency() == sampling_frequency
54+
assert recording.get_num_channels() == num_channels
55+
assert recording.get_duration() == 1.0

0 commit comments

Comments
 (0)