Skip to content

Commit 6e5d5a5

Browse files
authored
Merge branch 'main' into fix-concatenate-mode
2 parents 60cbce4 + 1ed860f commit 6e5d5a5

25 files changed

Lines changed: 1470 additions & 221 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 24.10.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212
files: ^src/

doc/modules/core.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,13 @@ Since these core extensions are important for all other extensions it is importa
310310
and the time after (:code:`ms_after`) to ensure that you have a full waveform. Because waveforms occur on multiple channels with multiple
311311
samples this can be a big data structure.
312312
* :code:`templates` are calculated from the raw waveform data and are used for downstream analyses
313-
(e.g. :code:`spike_amplitudes` are calculated based on the templates). This raises the question: if the :code:`templates` are what are used,
314-
then why save the :code:`waveforms`? Well, there are two ways to obtain :code:`templates` data: 1) directly from the raw data (based on the
315-
:code:`random_spikes`) or 2) from the :code:`waveforms`. When getting :code:`templates` from the raw data we are limited to obtaining averages
316-
and standard deviations. If we calculate the templates from the waveforms, however, we can also calculate the templates as medians or percentiles
313+
(e.g. :code:`spike_amplitudes` are calculated based on the templates). This raises the question: if the :code:`templates` are all we need,
314+
then why compute and save the :code:`waveforms`? Well, there are two ways to obtain :code:`templates` data: 1) directly from the raw data (based on the
315+
:code:`random_spikes`) or 2) from the :code:`waveforms` extension. When getting :code:`templates` from the raw data we are limited to obtaining averages
316+
and standard deviations. If we calculate the templates from the waveforms, however, we can also calculate the template medians or percentiles
317317
in addition to the average or standard deviations of the :code:`waveforms`. So it is important to think about the type of downstream analyses that
318-
you may want to do in deciding whether to calculate :code:`templates` with :code:`random_spikes` or using :code:`waveforms`.
318+
you may want to do in deciding whether to calculate :code:`templates` with :code:`random_spikes` or using :code:`waveforms`. Note that if the :code:`waveforms`
319+
extension is available, :code:`templates` will be calculated from it (the :code:`ms_before` and :code:`ms_after` parameters are also inherited from the :code:`waveforms`).
319320
* :code:`noise_levels` compute noise-levels in a channel-wise fashion. This provides important information about the specific recording session
320321
and is important for some downstream quality analyses.
321322

examples/tutorials/curation/plot_1_automated_curation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def calculate_moving_avg(label_df, confidence_label, window_size):
209209
# trained on real data.
210210
#
211211
# For example, the following classifiers are trained on Neuropixels data from 11 mice recorded in
212-
# V1,SC and ALM: https://huggingface.co/AnoushkaJain3/noise_neural_classifier/ and
213-
# https://huggingface.co/AnoushkaJain3/sua_mua_classifier/ . One will classify units into
212+
# V1,SC and ALM: https://huggingface.co/SpikeInterface/UnitRefine_noise_neural_classifier/ and
213+
# https://huggingface.co/SpikeInterface/UnitRefine_sua_mua_classifier/. One will classify units into
214214
# `noise` or `not-noise` and the other will classify the `not-noise` units into single
215215
# unit activity (sua) units and multi-unit activity (mua) units.
216216
#
@@ -221,8 +221,8 @@ def calculate_moving_avg(label_df, confidence_label, window_size):
221221

222222
# Apply the noise/not-noise model
223223
noise_neuron_labels = sc.auto_label_units(
224-
sorting_analyzer = sorting_analyzer,
225-
repo_id = "AnoushkaJain3/noise_neural_classifier",
224+
sorting_analyzer=sorting_analyzer,
225+
repo_id="SpikeInterface/UnitRefine_noise_neural_classifier",
226226
trust_model=True,
227227
)
228228

@@ -231,8 +231,8 @@ def calculate_moving_avg(label_df, confidence_label, window_size):
231231

232232
# Apply the sua/mua model
233233
sua_mua_labels = sc.auto_label_units(
234-
sorting_analyzer = analyzer_neural,
235-
repo_id = "AnoushkaJain3/sua_mua_classifier",
234+
sorting_analyzer=analyzer_neural,
235+
repo_id="SpikeInterface/UnitRefine_sua_mua_classifier",
236236
trust_model=True,
237237
)
238238

src/spikeinterface/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""
2-
3-
4-
"""
1+
""" """
52

63
import importlib.metadata
74

src/spikeinterface/comparison/collision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class CollisionGTComparison(GroundTruthComparison):
1515
1616
Parameters
1717
----------
18-
gt_sorting : SortingExtractor
18+
gt_sorting : BaseSorting
1919
The first sorting for the comparison
2020
collision_lag : float, default 2.0
2121
Collision lag in ms.
22-
tested_sorting : SortingExtractor
22+
tested_sorting : BaseSorting
2323
The second sorting for the comparison
2424
nbins : int, default : 11
2525
Number of collision bins

0 commit comments

Comments
 (0)