Skip to content

Commit 214dc0b

Browse files
authored
Merge branch 'main' into fix-metrics-plot
2 parents 153d5bd + 8533a52 commit 214dc0b

135 files changed

Lines changed: 5354 additions & 5845 deletions

File tree

Some content is hidden

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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
8-
- repo: https://github.com/psf/black
8+
- repo: https://github.com/psf/black-pre-commit-mirror
99
rev: 25.9.0
1010
hooks:
1111
- id: black

doc/api.rst

100644100755
Lines changed: 84 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -394,58 +394,63 @@ Deprecated
394394
spikeinterface.generation
395395
-------------------------
396396

397-
.. currentmodule:: spikeinterface.generation
398-
399397
Core
400398
~~~~
401399

400+
.. currentmodule:: spikeinterface.generation
402401

403-
.. autofunction:: generate_recording
404-
.. autofunction:: generate_sorting
405-
.. autofunction:: generate_snippets
406-
.. autofunction:: generate_templates
407-
.. autofunction:: generate_recording_by_size
408-
.. autofunction:: generate_ground_truth_recording
409-
.. autofunction:: add_synchrony_to_sorting
410-
.. autofunction:: synthesize_random_firings
411-
.. autofunction:: inject_some_duplicate_units
412-
.. autofunction:: inject_some_split_units
413-
.. autofunction:: synthetize_spike_train_bad_isi
414-
.. autofunction:: inject_templates
415-
.. autofunction:: noise_generator_recording
416-
.. autoclass:: InjectTemplatesRecording
417-
.. autoclass:: NoiseGeneratorRecording
402+
.. autofunction:: generate_recording
403+
.. autofunction:: generate_sorting
404+
.. autofunction:: generate_snippets
405+
.. autofunction:: generate_templates
406+
.. autofunction:: generate_recording_by_size
407+
.. autofunction:: generate_ground_truth_recording
408+
.. autofunction:: add_synchrony_to_sorting
409+
.. autofunction:: synthesize_random_firings
410+
.. autofunction:: inject_some_duplicate_units
411+
.. autofunction:: inject_some_split_units
412+
.. autofunction:: synthetize_spike_train_bad_isi
413+
.. autofunction:: inject_templates
414+
.. autofunction:: noise_generator_recording
415+
.. autoclass:: InjectTemplatesRecording
416+
.. autoclass:: NoiseGeneratorRecording
418417

419418
Drift
420419
~~~~~
421420

422-
.. autofunction:: generate_drifting_recording
423-
.. autofunction:: generate_displacement_vector
424-
.. autofunction:: make_one_displacement_vector
425-
.. autofunction:: make_linear_displacement
426-
.. autofunction:: move_dense_templates
427-
.. autofunction:: interpolate_templates
428-
.. autoclass:: DriftingTemplates
429-
.. autoclass:: InjectDriftingTemplatesRecording
421+
.. currentmodule:: spikeinterface.generation
422+
423+
.. autofunction:: generate_drifting_recording
424+
.. autofunction:: generate_displacement_vector
425+
.. autofunction:: make_one_displacement_vector
426+
.. autofunction:: make_linear_displacement
427+
.. autofunction:: move_dense_templates
428+
.. autofunction:: interpolate_templates
429+
.. autoclass:: DriftingTemplates
430+
.. autoclass:: InjectDriftingTemplatesRecording
430431

431432
Hybrid
432433
~~~~~~
433434

434-
.. autofunction:: generate_hybrid_recording
435-
.. autofunction:: estimate_templates_from_recording
436-
.. autofunction:: select_templates
437-
.. autofunction:: scale_template_to_range
438-
.. autofunction:: relocate_templates
439-
.. autofunction:: fetch_template_object_from_database
440-
.. autofunction:: fetch_templates_database_info
441-
.. autofunction:: list_available_datasets_in_template_database
442-
.. autofunction:: query_templates_from_database
435+
.. currentmodule:: spikeinterface.generation
436+
437+
.. autofunction:: generate_hybrid_recording
438+
.. autofunction:: estimate_templates_from_recording
439+
.. autofunction:: select_templates
440+
.. autofunction:: scale_template_to_range
441+
.. autofunction:: relocate_templates
442+
.. autofunction:: fetch_template_object_from_database
443+
.. autofunction:: fetch_templates_database_info
444+
.. autofunction:: list_available_datasets_in_template_database
445+
.. autofunction:: query_templates_from_database
443446

444447

445448
Noise
446449
~~~~~
447450

448-
.. autofunction:: generate_noise
451+
.. currentmodule:: spikeinterface.generation
452+
453+
.. autofunction:: generate_noise
449454

450455

451456
spikeinterface.sortingcomponents
@@ -467,7 +472,7 @@ Clustering
467472
~~~~~~~~~~
468473
.. automodule:: spikeinterface.sortingcomponents.clustering
469474

470-
.. autofunction:: find_cluster_from_peaks
475+
.. autofunction:: find_clusters_from_peaks
471476

472477
Template Matching
473478
~~~~~~~~~~~~~~~~~
@@ -485,3 +490,46 @@ Motion Correction
485490
.. autofunction:: interpolate_motion_on_traces
486491
.. autofunction:: clean_motion_vector
487492
.. autoclass:: InterpolateMotionRecording
493+
494+
spikeinterface.benchmark
495+
------------------------
496+
497+
.. automodule:: spikeinterface.benchmark
498+
499+
.. autoclass:: SorterStudy
500+
501+
.. automodule:: spikeinterface.benchmark.benchmark_peak_detection
502+
503+
.. autoclass:: PeakDetectionStudy
504+
505+
.. automodule:: spikeinterface.benchmark.benchmark_peak_localization
506+
507+
.. autoclass:: PeakLocalizationStudy
508+
509+
.. automodule:: spikeinterface.benchmark.benchmark_peak_localization
510+
511+
.. autoclass:: UnitLocalizationStudy
512+
513+
.. automodule:: spikeinterface.benchmark.benchmark_motion_estimation
514+
515+
.. autoclass:: MotionEstimationStudy
516+
517+
.. automodule:: spikeinterface.benchmark.benchmark_clustering
518+
519+
.. autoclass:: ClusteringStudy
520+
521+
.. automodule:: spikeinterface.benchmark.benchmark_matching
522+
523+
.. autoclass:: MatchingStudy
524+
525+
.. automodule:: spikeinterface.benchmark.benchmark_plot_tools
526+
527+
.. autofunction:: plot_run_times
528+
.. autofunction:: plot_unit_counts
529+
.. autofunction:: plot_agreement_matrix
530+
.. autofunction:: plot_performances_vs_snr
531+
.. autofunction:: plot_performances_ordered
532+
.. autofunction:: plot_performances_swarm
533+
.. autofunction:: plot_performances_comparison
534+
.. autofunction:: plot_performances_vs_depth_and_snr
535+
.. autofunction:: plot_performance_losses

doc/how_to/analyze_neuropixels.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Let’s use here the ``locally_exclusive`` method for detection and the
442442
443443
from spikeinterface.sortingcomponents.peak_localization import localize_peaks
444444
445-
peak_locations = localize_peaks(rec, peaks, method='center_of_mass', radius_um=50., **job_kwargs)
445+
peak_locations = localize_peaks(rec, peaks, method='center_of_mass', method_kwargs=dict(radius_um=50.), **job_kwargs)
446446
447447
448448
128 KB
Loading
393 KB
Loading
64.8 KB
Loading
23.4 KB
Loading
26.8 KB
Loading
12.1 KB
Loading

doc/images/generation_fig1.png

40.3 KB
Loading

0 commit comments

Comments
 (0)