Skip to content

Commit

Permalink
use spike times in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Aug 25, 2023
1 parent cf5cb08 commit 8c5b95d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spikeanalysis/spike_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8c5b95d

Please sign in to comment.