diff --git a/src/spikeinterface/core/numpyextractors.py b/src/spikeinterface/core/numpyextractors.py index 0e7aba3080..00b4d9efff 100644 --- a/src/spikeinterface/core/numpyextractors.py +++ b/src/spikeinterface/core/numpyextractors.py @@ -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