From 8c5b95d88d74dc4c357618c2435eab88b1ffa09a Mon Sep 17 00:00:00 2001 From: Zach McKenzie <92116279+zm711@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:52:36 -0400 Subject: [PATCH] use spike times in samples --- src/spikeanalysis/spike_data.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/spikeanalysis/spike_data.py b/src/spikeanalysis/spike_data.py index 38a1517..6290d5d 100644 --- a/src/spikeanalysis/spike_data.py +++ b/src/spikeanalysis/spike_data.py @@ -228,9 +228,7 @@ def refractory_violation(self, ref_dur_ms: float): spike_clusters = np.squeeze(np.load("spike_clusters.npy")) violations = np.zeros((len(set(spike_clusters)))) violations[:] = np.nan - - - spike_times = self.raw_spike_times / self._sampling_rate + spike_times = self.raw_spike_times for idx, cluster in enumerate(tqdm(set(spike_clusters))): spikes = spike_times[self.spike_clusters == cluster]