Skip to content

Commit

Permalink
Merge pull request #2916 from JoeZiminski/remove_toy_example_nonsorte…
Browse files Browse the repository at this point in the history
…r_tests

Remove toy example from test codebase (1)
  • Loading branch information
samuelgarcia authored May 30, 2024
2 parents 93f33e9 + 98e395d commit 6af4d8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pandas as pd

from spikeinterface.extractors import NumpySorting, toy_example
from spikeinterface.extractors import NumpySorting
from spikeinterface.comparison import compare_sorter_to_ground_truth


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import pytest
import numpy as np

from spikeinterface.extractors import NumpySorting, toy_example
from spikeinterface.core import generate_sorting
from spikeinterface.extractors import NumpySorting
from spikeinterface.comparison import compare_multiple_sorters, MultiSortingComparison

if hasattr(pytest, "global_test_folder"):
Expand Down Expand Up @@ -72,7 +73,7 @@ def test_compare_multiple_sorters():

def test_compare_multi_segment():
num_segments = 3
_, sort = toy_example(num_segments=num_segments)
sort = generate_sorting(durations=[10] * num_segments)

cmp_multi = compare_multiple_sorters([sort, sort, sort])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import numpy as np

from spikeinterface.extractors import NumpySorting, toy_example
from spikeinterface.core import generate_sorting
from spikeinterface.extractors import NumpySorting
from spikeinterface.comparison import compare_two_sorters


Expand Down Expand Up @@ -29,7 +30,7 @@ def test_compare_two_sorters():


def test_compare_multi_segment():
_, sort = toy_example(num_segments=2)
sort = generate_sorting(durations=[10, 10])

cmp_multi = compare_two_sorters(sort, sort)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
create_sorting_analyzer,
)

# from spikeinterface.extractors.toy_example import toy_example
from spikeinterface.qualitymetrics.utils import create_ground_truth_pc_distributions

from spikeinterface.qualitymetrics import (
Expand Down

0 comments on commit 6af4d8d

Please sign in to comment.