Skip to content

FIX empty dataset_list in python3.10 - #449

Merged
bruAristimunha merged 3 commits into
NeuroTechX:developfrom
tomMoral:FIX_dataset_list
Aug 4, 2023
Merged

bruAristimunha merged 3 commits into
NeuroTechX:developfrom
tomMoral:FIX_dataset_list

Conversation

@tomMoral

@tomMoral tomMoral commented Aug 3, 2023

Copy link
Copy Markdown
Collaborator

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

bruAristimunha commented Aug 3, 2023 •

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

Thank you @tomMoral!

@bruAristimunha
bruAristimunha merged commit 01e2899 into NeuroTechX:develop Aug 4, 2023
@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.

2 participants