Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize dataset names #455

Merged
merged 47 commits into from
Aug 18, 2023
Merged

Conversation

PierreGtch
Copy link
Collaborator

@PierreGtch PierreGtch changed the title Update dataset names Normalize dataset names Aug 7, 2023
@PierreGtch
Copy link
Collaborator Author

I renamed 18 datasets and 6 compound datasets. All the old class names are still available but are marked as depreciated. The old class names are not in dataset_list

@PierreGtch PierreGtch marked this pull request as ready for review August 11, 2023 11:25
@PierreGtch
Copy link
Collaborator Author

Ready to merge it you're happy with it @bruAristimunha

Copy link
Member

@sylvchev sylvchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, MOABB will be super neat!

moabb/datasets/ssvep_exo.py Outdated Show resolved Hide resolved
moabb/utils.py Show resolved Hide resolved
@PierreGtch PierreGtch merged commit 4de9858 into NeuroTechX:develop Aug 18, 2023
7 checks passed
@@ -54,3 +54,24 @@
# Call this last in order to make sure the dataset list contains all
# the datasets imported in this file.
_init_dataset_list()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break all the braindecode examples, @PierreGtch and @sylvchev. Can I put the _init_dataset_list() in the end of the file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem on my side!

We just have to remove the test that ensures that the dataset codes are unique in the list.

Maybe we could also put the compound datasets in the same list instead of having a separate compound_datasets_list

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I will handle with compound datasets in another PR.

bruAristimunha added a commit to bruAristimunha/moabb that referenced this pull request Aug 19, 2023
* Add depreciation decorator

* Update test_dataset_list

* Ignore aliases in test_dataset_list

* Add is_abreviation function

* Add tests for is_abreviation and is-camel-kebab_case

* Rename is_abbrev

* Fix dashes in is_abbrev

* Fix error message

* Update BNCI datasets names and codes

* Update mamem dataset codes

* Update epfl dataset code

* Update DeamonsP300 dataset code

* Test if codes are unique

* Update Huebner codes

* Relax is_abrev

* Update FakeDataset code

* Update code and name of Passive Head Mounted Display with Music Listening dataset

* Update name of GrosseWentrup2009

* Update code of Nakanishi2015

* Update name of SSVEPExo

* Update add argument suffix to Shin2017 and rename to BaseShin2017

* Update code of Sosulski2019

* Re-rename HeadMountedDisplay because colision with VR-P300

* Rename VirtualReality to Cattan2019_VR

* Add alias for VirtualReality

* Update code of Wand2016

* Update name of braininvaders datasets

* Add compound_dataset_list with test

* Del _init_dataset_list after usage

* Change names of bi-illeteracy datasets

* Fix hardcoded code test for Cattan2019-VR

* Fix benchmark test

* Update whats_new.rst

* Update BI2014b

Fixing the number of subjects in BI2014b.

* Update dataset summaries

* Fix case when note already present

* Fix forgotten change of BNCI2014001

* warn instead of raise when code and class name don't match (compatibility with depreciated names)

* Add test for depreciated datasets init

* Fix asserNoLogs only introduced in python3.10

* Specity test for depreciated warning

* Undo edit to old whats_new.rst lines

* Fix note formatting

* Update SSVEPExo name and code to Kalunga2016

---------

Co-authored-by: Bru <[email protected]>
Co-authored-by: Sara Sedlar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Normalise datasets class names
4 participants