adding singularity test
@@ -2,7 +2,7 @@ import pytest
from spikeinterface import download_dataset
from spikeinterface.extractors import read_mearec
-from spikeinterface.sorters import run_sorter
+from spikeinterface.sorters import run_sorter, run_sorter_container
def test_run_sorter_local():
@@ -33,6 +33,22 @@ def test_run_sorter_docker():
**sorter_params)
print(sorting)
+# @pytest.mark.skip('Singularity test no run with pytest : do it manually')
+def test_run_sorter_singularity():
+ local_path = download_dataset(remote_path='mearec/mearec_test_10s.h5')
+ recording, sorting_true = read_mearec(local_path)
+
+ sorter_params = {'detect_threshold': 4.9}
+
+ image = 'spikeinterface/tridesclous-base:1.6.3'
+
+ sorting = run_sorter_container('tridesclous', recording, 'singularity', image,
+ output_folder='sorting_tdc_docker',
+ remove_existing_folder=True, delete_output_folder=False,
+ verbose=True, raise_error=True,
+ **sorter_params)
+ print(sorting)
+
if __name__ == '__main__':
# ~ test_run_sorter_local()
