Skip to content

Commit 98a9deb

Browse files
authored
Merge branch 'main' into fix_numpy_2.0_representation
2 parents b5163ca + ec5037e commit 98a9deb

15 files changed

Lines changed: 78 additions & 77 deletions

File tree

doc/api.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ spikeinterface.core
2222
.. autofunction:: estimate_sparsity
2323
.. autoclass:: ChannelSparsity
2424
:members:
25+
.. autoclass:: Motion
26+
:members:
2527
.. autoclass:: BinaryRecordingExtractor
2628
.. autoclass:: ZarrRecordingExtractor
2729
.. autoclass:: BinaryFolderRecording
@@ -447,7 +449,6 @@ Motion Correction
447449
~~~~~~~~~~~~~~~~~
448450
.. automodule:: spikeinterface.sortingcomponents.motion
449451

450-
.. autoclass:: Motion
451452
.. autofunction:: estimate_motion
452453
.. autofunction:: interpolate_motion
453454
.. autofunction:: correct_motion_on_peaks

doc/conf.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131
folders = [
3232
'../examples/tutorials/core/my_recording',
3333
'../examples/tutorials/core/my_sorting',
34-
'../examples/tutorials/core/waveform_folder',
35-
'../examples/tutorials/core/waveform_folder_parallel',
36-
'../examples/tutorials/core/waveform_folder_sparse',
37-
'../examples/tutorials/core/waveform_folder_sparse_direct',
38-
'../examples/tutorials/core/waveform_folder2',
39-
'../examples/tutorials/core/waveform_folder',
40-
'../examples/tutorials/qualitymetrics/waveforms_mearec',
41-
'../examples/tutorials/qualitymetrics/wfs_mearec',
34+
'../examples/tutorials/core/analyzer_folder',
35+
'../examples/tutorials/core/analyzer_some_units',
36+
'../examples/tutorials/core/analyzer.zarr',
37+
'../examples/tutorials/curation/my_folder',
38+
'../examples/tutorials/qualitymetrics/curated_sorting',
39+
'../examples/tutorials/qualitymetrics/clean_analyzer.zarr',
4240
'../examples/tutorials/widgets/waveforms_mearec',
4341

4442
]
@@ -101,7 +99,6 @@
10199
import sphinx_rtd_theme
102100

103101
html_theme = "sphinx_rtd_theme"
104-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
105102
except ImportError:
106103
print("RTD theme not installed, using default")
107104
html_theme = 'alabaster'
@@ -110,8 +107,9 @@
110107
# relative to this directory. They are copied after the builtin static files,
111108
# so a file named "default.css" will overwrite the builtin "default.css".
112109
# html_static_path = ['_static']
113-
114-
html_favicon = "images/favicon-32x32.png"
110+
# html_css_files = ['custom.css']
111+
html_favicon = "images/logo.png"
112+
html_logo = "images/logo.png"
115113

116114

117115
from sphinx_gallery.sorting import ExplicitOrder

doc/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ Welcome to SpikeInterface's documentation!
22
==========================================
33

44

5-
.. image:: images/logo.png
6-
:scale: 100 %
7-
:align: center
8-
9-
105
SpikeInterface is a Python module to analyze extracellular electrophysiology data.
116

127
With a few lines of code, SpikeInterface enables you to load and pre-process the recording, run several

doc/modules/comparison.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For spike train comparison, there are three use cases:
2626

2727
A ground-truth dataset can be a paired recording, in which a neuron is recorded both extracellularly and with
2828
a patch or juxtacellular electrode (either **in vitro** or **in vivo**), or it can be a simulated dataset
29-
(**in silico**) using spiking activity simulators such as `MEArec`_.
29+
(**in silico**) using spiking activity simulators such as `MEArec <https://github.com/SpikeInterface/MEArec>`_.
3030

3131
The comparison to ground-truth datasets is useful to benchmark spike sorting algorithms.
3232

doc/modules/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Modules documentation
1717
sortingcomponents
1818
motion_correction
1919
generation
20+
benchmark

doc/modules/sorters.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,6 @@ Here is the list of external sorters accessible using the run_sorter wrapper:
473473
* **HDSort** :code:`run_sorter(sorter_name='hdsort')`
474474
* **YASS** :code:`run_sorter(sorter_name='yass')`
475475

476-
Internal Sorters
477-
----------------
478476

479477
Here a list of internal sorter based on `spikeinterface.sortingcomponents`; they are totally
480478
experimental for now:

examples/tutorials/curation/plot_2_train_a_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Training a model for automated curation
3-
=============================
3+
=======================================
44
55
If the pretrained models do not give satisfactory performance on your data, it is easy to train your own classifier using SpikeInterface.
66
"""
@@ -57,7 +57,7 @@
5757
sw.plot_unit_templates(analyzer, unit_ids=["0", "5"])
5858

5959
##############################################################################
60-
# This is as expected: great! (Find out more about plotting using widgets `here <https://spikeinterface.readthedocs.io/en/latest/modules/widgets.html>`_.)
60+
# This is as expected: great! (Find out more about plotting `using widgets <https://spikeinterface.readthedocs.io/en/latest/modules/widgets.html>`_.)
6161
# We've set up our system so that the first five units are 'good' and the next five are 'bad'.
6262
# So we can make a list of labels which contain this information. For real data, you could
6363
# use a manual curation tool to make your own list.
@@ -129,8 +129,8 @@
129129
# half were pure noise and half were not.
130130
#
131131
# The model also contains some more information, such as which features are "important",
132-
# as defined by sklearn (learn about feature importance of a Random Forest Classifier
133-
# `here <https://scikit-learn.org/1.5/auto_examples/ensemble/plot_forest_importances.html>`_.)
132+
# as defined by sklearn (learn about feature importance of a
133+
# `Random Forest Classifier <https://scikit-learn.org/1.5/auto_examples/ensemble/plot_forest_importances.html>`_.)
134134
# We can plot these:
135135

136136
# Plot feature importances

examples/tutorials/curation/plot_3_upload_a_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@
136136
#
137137
# Chris Halcrow
138138
#
139-
# You can see the repo with this Model card `here <https://huggingface.co/SpikeInterface/toy_tetrode_model>`_.
139+
# You can see the repo with this `Model card <https://huggingface.co/SpikeInterface/toy_tetrode_model>`_.

src/spikeinterface/benchmark/benchmark_peak_localization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def plot_comparison_positions(self, case_keys=None):
403403
# ax2.spines["top"].set_visible(False)
404404
# ax2.spines["right"].set_visible(False)
405405
# ax2.set_xlim(xmin, xmax)
406-
# ax2.set_xlabel(r"x ($\mu$m)")
406+
# ax2.set_xlabel(r"x ($\\mu$m)")
407407
# ax2.set_ylabel("# spikes")
408408

409409

src/spikeinterface/core/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
compute_noise_levels,
173173
)
174174

175+
from .motion import Motion
176+
175177
# Important not for compatibility!!
176178
# This wil be uncommented after 0.100
177179
from .waveforms_extractor_backwards_compatibility import (

0 commit comments

Comments
 (0)