Skip to content

Commit

Permalink
ensure n_spikes_below is correctly indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Oct 14, 2024
1 parent d15b12c commit 3a540eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainbox/metrics/single_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ def quick_unit_metrics(spike_clusters, spike_times, spike_amps, spike_depths,
r.slidingRP_viol_forced[ir] = srp['value_forced']
r.max_confidence[ir] = srp['max_confidence']
r.min_contamination[ir] = srp['min_contamination']
r.n_spikes_below2 = srp['n_spikes_below2']
r.n_spikes_below2[ir] = srp['n_spikes_below2']

# loop over each cluster to compute the rest of the metrics
for ic in np.arange(nclust):
Expand Down

0 comments on commit 3a540eb

Please sign in to comment.