Skip to content

Commit

Permalink
Remove deprecated datasets from dataset_search results (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGtch authored Oct 19, 2023
1 parent 6f707e9 commit 189d432
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moabb/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import moabb.datasets as db
from moabb.datasets.base import BaseDataset
from moabb.utils import aliases_list


dataset_list = []
Expand Down Expand Up @@ -53,6 +54,7 @@ def dataset_search( # noqa: C901
"""
if len(dataset_list) == 0:
_init_dataset_list()
deprecated_names, _, _ = zip(*aliases_list)

channels = set(channels)
out_data = []
Expand All @@ -63,6 +65,9 @@ def dataset_search( # noqa: C901
assert paradigm in ["imagery", "p300", "ssvep", None]

for type_d in dataset_list:
if type_d.__name__ in deprecated_names:
continue

d = type_d()
skip_dataset = False
if multi_session and d.n_sessions < 2:
Expand Down

0 comments on commit 189d432

Please sign in to comment.