Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ spikeinterface.comparison
.. autofunction:: compare_sorter_to_ground_truth
.. autofunction:: compare_templates
.. autofunction:: compare_multiple_templates
.. autofunction:: create_hybrid_units_recording
.. autofunction:: create_hybrid_spikes_recording

.. autoclass:: GroundTruthComparison
:members:
Expand Down
2 changes: 1 addition & 1 deletion doc/get_started/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ object to disk.
To reload a preprocessed recording that was saved to disk, you can use
``load_extractor()`` function from the ``core`` module.
``load()`` function from the ``core`` module.

Now you are ready to spike sort using the ``spikeinterface.sorters``
module! Let’s first check which sorters are implemented and which are
Expand Down
2 changes: 1 addition & 1 deletion examples/get_started/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
print(recording_preprocessed)
# -

# To reload a preprocessed recording that was saved to disk, you can use `load_extractor()` function from the `core` module.
# To reload a preprocessed recording that was saved to disk, you can use `load()` function from the `core` module.
#
# Now you are ready to spike sort using the `spikeinterface.sorters` module!
# Let's first check which sorters are implemented and which are installed
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/core/plot_1_recording_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,21 @@
# The "dump" operation is lazy, i.e., the traces are not exported.
# Only the information about how to reconstruct the recording are dumped:

from spikeinterface import load_extractor
from spikeinterface import load
from pprint import pprint

d = recording2.to_dict()
pprint(d)

recording2_loaded = load_extractor(d)
recording2_loaded = load(d)
print(recording2_loaded)

###############################################################################
# The dictionary can also be dumped directly to a JSON file on disk:

recording2.dump("my_recording.json")

recording2_loaded = load_extractor("my_recording.json")
recording2_loaded = load("my_recording.json")
print(recording2_loaded)

###############################################################################
Expand All @@ -181,5 +181,5 @@

pprint(os.listdir("./my_recording"))

recording2_cached = load_extractor("my_recording.json")
recording2_cached = load("my_recording.json")
print(recording2_cached)
8 changes: 4 additions & 4 deletions examples/tutorials/core/plot_2_sorting_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@
# The "dump" operation is lazy, i.e., the spike trains are not exported.
# Only the information about how to reconstruct the sorting are dumped:

from spikeinterface import load_extractor
from spikeinterface import load
from pprint import pprint

d = sorting2.to_dict()
pprint(d)

sorting2_loaded = load_extractor(d)
sorting2_loaded = load(d)
print(sorting2_loaded)

###############################################################################
# The dictionary can also be dumped directly to a JSON file on disk:

sorting2.dump("my_sorting.json")

sorting2_loaded = load_extractor("my_sorting.json")
sorting2_loaded = load("my_sorting.json")
print(sorting2_loaded)

###############################################################################
Expand All @@ -133,5 +133,5 @@

pprint(os.listdir("./my_sorting"))

sorting2_cached = load_extractor("./my_sorting")
sorting2_cached = load("./my_sorting")
print(sorting2_cached)
2 changes: 0 additions & 2 deletions src/spikeinterface/benchmark/benchmark_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,6 @@ def load_folder(cls, folder):
with open(file, mode="rb") as f:
result[k] = pickle.load(f)
elif format == "sorting":
from spikeinterface.core import load_extractor

sorting_folder = folder / k
if sorting_folder.exists():
result[k] = load(sorting_folder)
Expand Down
8 changes: 0 additions & 8 deletions src/spikeinterface/comparison/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,3 @@
from .groundtruthstudy import GroundTruthStudy
from .collision import CollisionGTComparison
from .correlogram import CorrelogramGTComparison

from .hybrid import (
HybridSpikesRecording,
HybridUnitsRecording,
generate_sorting_to_inject,
create_hybrid_units_recording,
create_hybrid_spikes_recording,
)
236 changes: 0 additions & 236 deletions src/spikeinterface/comparison/hybrid.py

This file was deleted.

Loading