File tree Expand file tree Collapse file tree
src/spikeinterface/core/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44from spikeinterface .extractors import WhiteMatterRecordingExtractor , BinaryRecordingExtractor
55from spikeinterface .core .numpyextractors import NumpyRecording
6+ from spikeinterface import get_global_dataset_folder
67
78
89def 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
You can’t perform that action at this time.
0 commit comments