Skip to content

Commit

Permalink
Fix copy metadata in numpy.form_sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed May 3, 2024
1 parent ba1cf46 commit 25dd6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/numpyextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def from_sorting(source_sorting: BaseSorting, with_metadata=False, copy_spike_ve
spike_vector = spike_vector.copy()
sorting = NumpySorting(spike_vector, source_sorting.get_sampling_frequency(), source_sorting.unit_ids.copy())
if with_metadata:
sorting.copy_metadata(source_sorting)
source_sorting.copy_metadata(sorting)
return sorting

@staticmethod
Expand Down

0 comments on commit 25dd6d3

Please sign in to comment.