Skip to content

Commit

Permalink
Some final docs/api/sphinx fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 19, 2024
1 parent 71af00e commit a38116d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ spikeinterface.curation
Deprecated
~~~~~~~~~~
.. automodule:: spikeinterface.curation
:noindex:

.. autofunction:: apply_sortingview_curation
.. autoclass:: CurationSorting
Expand Down
1 change: 1 addition & 0 deletions doc/how_to/drift_with_lfp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Preprocessing
Contrary to the **dredge_ap** approach, which needs detected peaks and peak locations, the **dredge_lfp**
method is estimating the motion directly on traces.
Importantly, the method requires some additional pre-processing steps:

* ``bandpass_filter``: to "focus" the signal on a particular band
* ``phase_shift``: to compensate for the sampling misalignement
* ``resample``: to further reduce the sampling fequency of the signal and speed up the computation. The sampling frequency of the estimated motion will be the same as the resampling frequency. Here we choose 250Hz, which corresponds to a sampling interval of 4ms.
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ state-of-the-art spike sorters, post-process and curate the output, compute qual

.. warning::

Version 0.101.0 introduces a major API improvement: the :code:`SortingAnalyzer`.`
Version 0.101.0 introduces a major API improvement: the :code:`SortingAnalyzer`.
To read more about the motivations, checkout the
`enhancement proposal <https://github.com/SpikeInterface/spikeinterface/issues/2282>`_.
Learn how to :ref:`update your code here <tutorials/waveform_extractor_to_sorting_analyzer:From WaveformExtractor to SortingAnalyzer>`
and read more about the :code:`SortingAnalyzer`, please refer to the
:ref:`core <modules/core:SortingAnalyzer>` and :ref:`postprocessing <modules/postprocessing>` module
:ref:`core <modules/core:SortingAnalyzer>` and :ref:`postprocessing <modules/postprocessing:Postprocessing module>` module
documentation.


Expand Down
4 changes: 2 additions & 2 deletions doc/modules/postprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Extensions as AnalyzerExtensions
--------------------------------

There are several postprocessing tools available, and all of them are implemented as a
:py:class:`~spikeinterface.core.ResultExtension`. If the :code:`SortingAnalyzer` is saved to disk, all computations on
:py:class:`~spikeinterface.core.AnalyzerExtension`. If the :code:`SortingAnalyzer` is saved to disk, all computations on
top of it will be saved alongside the :code:`SortingAnalyzer` itself (sub folder, zarr path or sub dict).
This workflow is convenient for retrieval of time-consuming computations (such as pca or spike amplitudes) when reloading a
:code:`SortingAnalyzer`.

:py:class:`~spikeinterface.core.ResultExtension` objects are tightly connected to the
:py:class:`~spikeinterface.core.AnalyzerExtension` objects are tightly connected to the
parent :code:`SortingAnalyzer` object, so that operations done on the :code:`SortingAnalyzer`, such as saving,
loading, or selecting units, will be automatically applied to all extensions.

Expand Down
4 changes: 2 additions & 2 deletions src/spikeinterface/core/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,8 @@ class NoiseGeneratorRecording(BaseRecording):
noise_block_size: int
Size in sample of noise block.
Note
----
Notes
-----
If modifying this function, ensure that only one call to malloc is made per call get_traces to
maintain the optimized memory profile.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/curation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
from .splitunitsorting import SplitUnitSorting, split_unit_sorting

# curation format
from .curation_format import validate_curation_dict, curation_label_to_dataframe
from .curation_format import validate_curation_dict, curation_label_to_dataframe, apply_curation

from .sortingview_curation import apply_sortingview_curation
12 changes: 6 additions & 6 deletions src/spikeinterface/sortingcomponents/motion/dredge.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def dredge_ap(
matrix (or several, one for each nonrigid window). This matrix is used to solve for a
motion estimate.
Arguments
---------
Parameters
----------
recording: BaseRecording
The recording extractor
peaks: numpy array
Expand Down Expand Up @@ -518,8 +518,8 @@ def dredge_online_lfp(
):
"""Online registration of a preprocessed LFP recording
Arguments
---------
Parameters
----------
{}
Returns
Expand Down Expand Up @@ -1065,8 +1065,8 @@ def calc_corr_decent_pair(
the normxcorrs at the best displacement, and the matrix of the best
displacements.
Arguments
---------
Parameters
----------
raster : DxT array
batch_size : int
How many raster rows to xcorr against the whole raster
Expand Down
4 changes: 2 additions & 2 deletions src/spikeinterface/sortingcomponents/motion/motion_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def clean_motion_vector(motion, temporal_bins, bin_duration_s, speed_threshold=3
Also can apply a smoothing.
Arguments
---------
Parameters
----------
motion: numpy array 2d
Motion estimate in um.
temporal_bins: numpy.array 1d
Expand Down

0 comments on commit a38116d

Please sign in to comment.