11import pytest
22import numpy as np
3+ from pathlib import Path
34
45from spikeinterface .extractors import WhiteMatterRecordingExtractor , BinaryRecordingExtractor
56from spikeinterface .core .numpyextractors import NumpyRecording
6- from spikeinterface import get_global_dataset_folder
7+ from spikeinterface import get_global_dataset_folder , download_dataset
78
89
910def test_round_trip (tmp_path ):
@@ -27,7 +28,7 @@ def test_round_trip(tmp_path):
2728 # Test for full traces
2829 assert np .allclose (recording .get_traces (), binary_recorder .get_traces ())
2930
30- # Ttest for a sub-set of the traces
31+ # Test for a sub-set of the traces
3132 start_frame = 20
3233 end_frame = 40
3334 smaller_traces = recording .get_traces (start_frame = start_frame , end_frame = end_frame )
@@ -36,15 +37,16 @@ def test_round_trip(tmp_path):
3637 np .allclose (smaller_traces , binary_smaller_traces )
3738
3839
39- file_path = (
40- get_global_dataset_folder ()
41- / "ephy_testing_data"
42- / "whitematter"
43- / "HSW_2024_12_12__10_28_23__70min_17sec__hsamp_64ch_25000sps_stub.bin"
44- )
40+ gin_repo = "https://gin.g-node.org/NeuralEnsemble/ephy_testing_data"
41+ local_folder = get_global_dataset_folder () / "ephy_testing_data"
42+ remote_path = Path ("whitematter" ) / "HSW_2024_12_12__10_28_23__70min_17sec__hsamp_64ch_25000sps_stub.bin"
4543
4644
4745def test_on_data ():
46+ file_path = download_dataset (
47+ repo = gin_repo , remote_path = remote_path , local_folder = local_folder , update_if_exists = True
48+ )
49+
4850 sampling_frequency = 25_000.0
4951 num_channels = 64
5052 recording = WhiteMatterRecordingExtractor (
0 commit comments