Skip to content

Commit

Permalink
Merge pull request #2104 from samuelgarcia/fix_main
Browse files Browse the repository at this point in the history
Fix slicing in merge.py and so tridesclous2 and so test_launcher.py
  • Loading branch information
yger authored Oct 16, 2023
2 parents bedaafc + a00ce05 commit 038d1d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/spikeinterface/sorters/tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ def test_run_sorters_with_dict():


if __name__ == "__main__":
# setup_module()
setup_module()
job_list = get_job_list()

# test_run_sorter_jobs_loop(job_list)
test_run_sorter_jobs_loop(job_list)
# test_run_sorter_jobs_joblib(job_list)
# test_run_sorter_jobs_processpoolexecutor(job_list)
# test_run_sorter_jobs_multiprocessing(job_list)
# test_run_sorter_jobs_dask(job_list)
test_run_sorter_jobs_slurm(job_list)
# test_run_sorter_jobs_slurm(job_list)

# test_run_sorter_by_property()

Expand Down
4 changes: 2 additions & 2 deletions src/spikeinterface/sortingcomponents/clustering/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,10 @@ def merge(
union_chans = np.union1d(target_chans0, target_chans1)

ind0 = list(labels_set).index(label0)
template0 = templates[ind0, :, target_chans]
template0 = templates[ind0][:, target_chans]

ind1 = list(labels_set).index(label1)
template1 = templates[ind1, :, target_chans]
template1 = templates[ind1][:, target_chans]

num_samples = template0.shape[0]
# norm = np.mean(np.abs(template0)) + np.mean(np.abs(template1))
Expand Down

0 comments on commit 038d1d3

Please sign in to comment.