Skip to content

Commit

Permalink
Update src/spikeinterface/qualitymetrics/misc_metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 authored Sep 19, 2023
1 parent bb79637 commit d3fe469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/qualitymetrics/misc_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def compute_synchrony_metrics(waveform_extractor, synchrony_sizes=(2, 4, 8), uni
Based on concepts described in [Gruen]_
This code was adapted from `Elephant - Electrophysiology Analysis Toolkit <https://github.com/NeuralEnsemble/elephant/blob/master/elephant/spike_train_synchrony.py#L245>`_
"""
assert np.all([s > 1 for s in synchrony_sizes]), "Synchrony sizes must be greater than 1"
assert min(synchrony_sizes) > 1, "Synchrony sizes must be greater than 1"
spike_counts = waveform_extractor.sorting.count_num_spikes_per_unit()
sorting = waveform_extractor.sorting
spikes = sorting.to_spike_vector(concatenated=False)
Expand Down

0 comments on commit d3fe469

Please sign in to comment.