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

FIX empty dataset_list in python3.10 #449

Merged
merged 3 commits into from Aug 4, 2023

Conversation

tomMoral
Copy link
Contributor

@tomMoral tomMoral commented Aug 3, 2023

On python3.10, I got an empty list of datasets from moabb.datasets.utils.
This is due to the fact that utils was imported before __init__ was fully set up.

This PR intends to make this determinist, by calling _init_dataset_list at the end of the moabb.datasets.__init__.py, with a test that checks that the list is complete.

@bruAristimunha
Copy link
Collaborator

bruAristimunha commented Aug 3, 2023

Amazing @tomMoral!

Can you please add your name and small description in the whats_news file?

- FIX comment position due to pre-commit messing with the files
@bruAristimunha
Copy link
Collaborator

Thank you @tomMoral!

@bruAristimunha bruAristimunha merged commit 01e2899 into NeuroTechX:develop Aug 4, 2023
8 checks passed
@tomMoral tomMoral deleted the FIX_dataset_list branch August 4, 2023 09:16
bruAristimunha pushed a commit to bruAristimunha/moabb that referenced this pull request Aug 19, 2023
* FIX empty dataset_list in python3.10

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* DOC add what's new entry

- FIX comment position due to pre-commit messing with the files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

None yet

2 participants