Skip to content

Commit 7714724

Browse files
committed
Merge branch 'add_time_vector_case_to_get_duration' of https://github.com/JoeZiminski/spikeinterface into add_time_vector_case_to_get_duration
2 parents 6b8c540 + d69d578 commit 7714724

File tree

118 files changed

+4410
-2338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4410
-2338
lines changed

doc/api.rst

Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -338,59 +338,58 @@ spikeinterface.curation
338338
spikeinterface.generation
339339
-------------------------
340340

341+
.. currentmodule:: spikeinterface.generation
342+
341343
Core
342344
~~~~
343-
.. automodule:: spikeinterface.generation
344-
345-
.. autofunction:: generate_recording
346-
.. autofunction:: generate_sorting
347-
.. autofunction:: generate_snippets
348-
.. autofunction:: generate_templates
349-
.. autofunction:: generate_recording_by_size
350-
.. autofunction:: generate_ground_truth_recording
351-
.. autofunction:: add_synchrony_to_sorting
352-
.. autofunction:: synthesize_random_firings
353-
.. autofunction:: inject_some_duplicate_units
354-
.. autofunction:: inject_some_split_units
355-
.. autofunction:: synthetize_spike_train_bad_isi
356-
.. autofunction:: inject_templates
357-
.. autofunction:: noise_generator_recording
358-
.. autoclass:: InjectTemplatesRecording
359-
.. autoclass:: NoiseGeneratorRecording
345+
346+
347+
.. autofunction:: generate_recording
348+
.. autofunction:: generate_sorting
349+
.. autofunction:: generate_snippets
350+
.. autofunction:: generate_templates
351+
.. autofunction:: generate_recording_by_size
352+
.. autofunction:: generate_ground_truth_recording
353+
.. autofunction:: add_synchrony_to_sorting
354+
.. autofunction:: synthesize_random_firings
355+
.. autofunction:: inject_some_duplicate_units
356+
.. autofunction:: inject_some_split_units
357+
.. autofunction:: synthetize_spike_train_bad_isi
358+
.. autofunction:: inject_templates
359+
.. autofunction:: noise_generator_recording
360+
.. autoclass:: InjectTemplatesRecording
361+
.. autoclass:: NoiseGeneratorRecording
360362

361363
Drift
362364
~~~~~
363-
.. automodule:: spikeinterface.generation
364365

365-
.. autofunction:: generate_drifting_recording
366-
.. autofunction:: generate_displacement_vector
367-
.. autofunction:: make_one_displacement_vector
368-
.. autofunction:: make_linear_displacement
369-
.. autofunction:: move_dense_templates
370-
.. autofunction:: interpolate_templates
371-
.. autoclass:: DriftingTemplates
372-
.. autoclass:: InjectDriftingTemplatesRecording
366+
.. autofunction:: generate_drifting_recording
367+
.. autofunction:: generate_displacement_vector
368+
.. autofunction:: make_one_displacement_vector
369+
.. autofunction:: make_linear_displacement
370+
.. autofunction:: move_dense_templates
371+
.. autofunction:: interpolate_templates
372+
.. autoclass:: DriftingTemplates
373+
.. autoclass:: InjectDriftingTemplatesRecording
373374

374375
Hybrid
375376
~~~~~~
376-
.. automodule:: spikeinterface.generation
377377

378-
.. autofunction:: generate_hybrid_recording
379-
.. autofunction:: estimate_templates_from_recording
380-
.. autofunction:: select_templates
381-
.. autofunction:: scale_template_to_range
382-
.. autofunction:: relocate_templates
383-
.. autofunction:: fetch_template_object_from_database
384-
.. autofunction:: fetch_templates_database_info
385-
.. autofunction:: list_available_datasets_in_template_database
386-
.. autofunction:: query_templates_from_database
378+
.. autofunction:: generate_hybrid_recording
379+
.. autofunction:: estimate_templates_from_recording
380+
.. autofunction:: select_templates
381+
.. autofunction:: scale_template_to_range
382+
.. autofunction:: relocate_templates
383+
.. autofunction:: fetch_template_object_from_database
384+
.. autofunction:: fetch_templates_database_info
385+
.. autofunction:: list_available_datasets_in_template_database
386+
.. autofunction:: query_templates_from_database
387387

388388

389389
Noise
390390
~~~~~
391-
.. automodule:: spikeinterface.generation
392391

393-
.. autofunction:: generate_noise
392+
.. autofunction:: generate_noise
394393

395394

396395
spikeinterface.sortingcomponents
@@ -408,12 +407,6 @@ Peak Detection
408407

409408
.. autofunction:: detect_peaks
410409

411-
Motion Correction
412-
~~~~~~~~~~~~~~~~~
413-
.. automodule:: spikeinterface.sortingcomponents.motion_interpolation
414-
415-
.. autoclass:: InterpolateMotionRecording
416-
417410
Clustering
418411
~~~~~~~~~~
419412
.. automodule:: spikeinterface.sortingcomponents.clustering
@@ -425,3 +418,15 @@ Template Matching
425418
.. automodule:: spikeinterface.sortingcomponents.matching
426419

427420
.. autofunction:: find_spikes_from_templates
421+
422+
Motion Correction
423+
~~~~~~~~~~~~~~~~~
424+
.. automodule:: spikeinterface.sortingcomponents.motion
425+
426+
.. autoclass:: Motion
427+
.. autofunction:: estimate_motion
428+
.. autofunction:: interpolate_motion
429+
.. autofunction:: correct_motion_on_peaks
430+
.. autofunction:: interpolate_motion_on_traces
431+
.. autofunction:: clean_motion_vector
432+
.. autoclass:: InterpolateMotionRecording

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
"IPython.sphinxext.ipython_console_highlighting"
7575
]
7676

77+
autosectionlabel_prefix_document = True
78+
7779
numpydoc_show_class_members = False
7880

7981

@@ -128,7 +130,7 @@
128130
'../examples/tutorials/widgets',
129131
]),
130132
'within_subsection_order': FileNameSortKey,
131-
'ignore_pattern': '/generate_',
133+
'ignore_pattern': '/generate_*',
132134
'nested_sections': False,
133135
'copyfile_regex': r'.*\.rst|.*\.png|.*\.svg'
134136
}

doc/get_started/install_sorters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sorters to retrieve installation instructions for other operating systems.
2727
We use **pip** to install packages, but **conda** should also work in many cases.
2828

2929
Some novel spike sorting algorithms are implemented directly in SpikeInterface using the
30-
:py:mod:`spikeinterface.sortingcomponents` module. Checkout the :ref:`SpikeInterface-based spike sorters` section of this page
30+
:py:mod:`spikeinterface.sortingcomponents` module. Checkout the :ref:`get_started/install_sorters:SpikeInterface-based spike sorters` section of this page
3131
for more information!
3232

3333
If you experience installation problems please directly contact the authors of these tools or write on the

doc/get_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ Sub-modules have more dependencies, so you should also install:
102102

103103

104104
All external spike sorters can be either run inside containers (Docker or Singularity - see :ref:`containerizedsorters`)
105-
or must be installed independently (see :ref:`Installing Spike Sorters`).
105+
or must be installed independently (see :ref:`get_started/install_sorters:Installing Spike Sorters`).

doc/how_to/benchmark_with_hybrid_recordings.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ order to smoothly inject spikes into the recording.
2424
import spikeinterface.generation as sgen
2525
import spikeinterface.widgets as sw
2626
27-
from spikeinterface.sortingcomponents.motion_estimation import estimate_motion
27+
from spikeinterface.sortingcomponents.motion import estimate_motion
2828
2929
import numpy as np
3030
import matplotlib.pyplot as plt
@@ -1202,63 +1202,63 @@ drifts when injecting hybrid spikes.
12021202
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12031203
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12041204
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1205-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1205+
1. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12061206
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12071207
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12081208
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1209-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1209+
2. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12101210
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12111211
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12121212
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1213-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1213+
3. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12141214
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12151215
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12161216
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1217-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1217+
4. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12181218
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12191219
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12201220
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1221-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1221+
5. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12221222
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12231223
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12241224
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1225-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1225+
6. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12261226
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12271227
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12281228
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1229-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1229+
7. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12301230
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12311231
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12321232
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1233-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1233+
8. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12341234
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12351235
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12361236
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1237-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1237+
9. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12381238
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12391239
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12401240
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1241-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1241+
10. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12421242
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12431243
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12441244
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1245-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1245+
11. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12461246
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12471247
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12481248
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1249-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1249+
12. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12501250
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12511251
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12521252
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1253-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1253+
13. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12541254
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12551255
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12561256
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1257-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1257+
14. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12581258
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12591259
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12601260
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385
1261-
0. 0. 0.07692308 0.07692308 0.15384615 0.15384615
1261+
15. 0. 0.07692308 0.07692308 0.15384615 0.15384615
12621262
0.23076923 0.23076923 0.30769231 0.30769231 0.38461538 0.38461538
12631263
0.46153846 0.46153846 0.53846154 0.53846154 0.61538462 0.61538462
12641264
0.69230769 0.69230769 0.76923077 0.76923077 0.84615385 0.84615385]</details></ul></details>

0 commit comments

Comments
 (0)