Skip to content

Commit

Permalink
indexing bug SRP calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-langfield committed Feb 1, 2024
1 parent 4f763c0 commit a6f232a
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 @@ -981,7 +981,7 @@ def quick_unit_metrics(spike_clusters, spike_times, spike_amps, spike_depths,
r.amp_std_dB[ir] = np.array(camp['log_amps'].std())
srp = metrics.slidingRP_all(spikeTimes=spike_times, spikeClusters=spike_clusters,
**{'sampleRate': 30000, 'binSizeCorr': 1 / 30000})
r.slidingRP_viol[srp['cidx']] = srp['value']
r.slidingRP_viol = srp['value']

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

0 comments on commit a6f232a

Please sign in to comment.