Skip to content

Commit

Permalink
Sparse waveforms were not handled
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Oct 5, 2023
1 parent 6951e85 commit fdebd12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/sorters/internal/spyking_circus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose):
## We launch a clustering (using hdbscan) relying on positions and features extracted on
## the fly from the snippets
clustering_params = params["clustering"].copy()
clustering_params["waveforms_kwargs"] = params["waveforms"]
clustering_params["waveforms"] = params["waveforms"].copy()

for k in ["ms_before", "ms_after"]:
clustering_params["waveforms_kwargs"][k] = params["general"][k]
clustering_params["waveforms"][k] = params["general"][k]

clustering_params.update(dict(shared_memory=params["shared_memory"]))
clustering_params["job_kwargs"] = job_kwargs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,8 @@ def sigmoid(x, L, x0, k, b):
recording,
sorting,
waveform_folder,
ms_before=params["ms_before"],
ms_after=params["ms_after"],
**params["job_kwargs"],
**params['waveforms'],
return_scaled=False,
mode=mode,
)
Expand Down

0 comments on commit fdebd12

Please sign in to comment.