braindecode / braindecode

Deep learning software to decode EEG, ECG or MEG signals
https://braindecode.org/
BSD 3-Clause "New" or "Revised" License
756 stars 173 forks source link

Making Unit Tests Faster by Using Simulated Data #545

Open robintibor opened 9 months ago

robintibor commented 9 months ago

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:

bruAristimunha commented 3 months ago

We have a util function called: https://github.com/braindecode/braindecode/blob/ab87bbba71719b122e8b764259854c80974d9d73/braindecode/util.py#L268

maybe a easy solution