File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/spikeinterface/qualitymetrics Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1085,10 +1085,10 @@ def compute_drift_metrics(
10851085 spikes_in_bin = spikes_in_segment [i0 :i1 ]
10861086 spike_locations_in_bin = spike_locations_in_segment [i0 :i1 ][direction ]
10871087
1088- for unit_index , unit_id in enumerate (unit_ids ):
1088+ for i , unit_id in enumerate (unit_ids ):
10891089 mask = spikes_in_bin ["unit_index" ] == sorting .id_to_index (unit_id )
10901090 if np .sum (mask ) >= min_spikes_per_interval :
1091- median_positions [unit_index , bin_index ] = np .median (spike_locations_in_bin [mask ])
1091+ median_positions [i , bin_index ] = np .median (spike_locations_in_bin [mask ])
10921092 if median_position_segments is None :
10931093 median_position_segments = median_positions
10941094 else :
You can’t perform that action at this time.
0 commit comments