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

Making Unit Tests Faster by Using Simulated Data #545

Open
robintibor opened this issue Sep 27, 2023 · 1 comment
Open

Making Unit Tests Faster by Using Simulated Data #545

robintibor opened this issue Sep 27, 2023 · 1 comment
Labels
code-improvement intermediate Intermediate Difficulty

Comments

@robintibor
Copy link
Contributor

Right now in several unit tests we load the BCI Competition IV 2a Dataset to then test windowing serialization etc.
In my view, this is an overkill and uses a lot of memory and runtime unnecessarily. We can just create smaller entirely fake data in those tests and this will speed up the unit tests quite a lot. Also makes it more appropriate for unit tests, like will not break in case anything changes about the MOABBDataset.

Affected files under test/unit_tests:

  • datautil/test_serialization.py
  • datasets/test_dataset.py
  • `preprocessing/test_mne_preprocessor.py
  • preprocessing/test_preprocess.py
  • preprocessing/test_windowers.py
  • samplers/test_samplers.py
  • training/test_scoring.py
@robintibor robintibor added intermediate Intermediate Difficulty code-improvement labels Sep 27, 2023
@bruAristimunha
Copy link
Collaborator

We have a util function called:

def create_mne_dummy_raw(

maybe a easy solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-improvement intermediate Intermediate Difficulty
Projects
None yet
Development

No branches or pull requests

2 participants