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

bi2013a not downloadable #309

Closed
toncho11 opened this issue Nov 21, 2022 · 5 comments
Closed

bi2013a not downloadable #309

toncho11 opened this issue Nov 21, 2022 · 5 comments

Comments

@toncho11
Copy link
Contributor

The bi2013a is not currently available with MOABB.

http://moabb.neurotechx.com/docs/generated/moabb.datasets.bi2013a.html#moabb.datasets.bi2013a

@toncho11
Copy link
Contributor Author

toncho11 commented Nov 21, 2022

It says

aise BadZipFile("File is not a zip file")

BadZipFile: File is not a zip file

I am using the following script to test most of the visual P300 datasets:

from moabb.datasets import bi2013a, bi2014a, bi2014b, bi2015a, bi2015b, BNCI2014008, BNCI2014009, BNCI2015003, EPFLP300, DemonsP300 
from moabb.paradigms import P300

def GetDataSetInfo(ds):
    #print("Parameters: ", ds.ds.__dict__)
    print("Dataset name: ", ds.__class__.__name__)
    print("Subjects: ", ds.subject_list)
    print("Subjects count: ", len(ds.subject_list))
    
    X, y, metadata = paradigm.get_data(dataset=ds, subjects=[ds.subject_list[0]])
    
    print("Electrodes count (inferred): ", X.shape[1])
    print("Epoch length (inferred)    : ", X.shape[2])
    #print("Description:    : ", ds.__doc__)

paradigm = P300()

#not available: bi2013a(), Lee2019_ERP()
for d in [bi2013a(), DemonsP300(), bi2014a(), bi2014b(), bi2015a(), bi2015b(), BNCI2014008(), BNCI2014009(), BNCI2015003(), EPFLP300()]:
    GetDataSetInfo(d)
    print("======================================================================================")

@gcattan
Copy link
Contributor

gcattan commented Dec 27, 2022

Deleting and recreating the data inside the MNE folder fixes this issue. But I agree this is somehow annoying.

@sylvchev
Copy link
Member

sylvchev commented Dec 31, 2022

Sorry for the late reply, I tried to reproduce it multiple times without success. I think this was just a corrupted files downloaded on your server. You need to remove and redownload data in that case, unfortunately.

@toncho11
Copy link
Contributor Author

Yes, that was the case.
We finally figured it out thanks to @gcattan.

@sylvchev
Copy link
Member

Seeing your GetDataSetInfo code, I think two ideas could interest you:

We are also interested to add automatically these information in the docs, so if you want to propose something, do not hesitate!

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

No branches or pull requests

3 participants