-
Notifications
You must be signed in to change notification settings - Fork 37
File is not a ZipFile #19
Comments
Strange, I just tried the example. It indeed fails on Python 2. I don't know what is going on. The zip file that is downloaded (in The SO post https://stackoverflow.com/questions/4923142 suggest that this happens also in other cases. |
See also #7. This is the source of most issues... |
Closing this. The discussion on #7 is most elaborate. When reading through all the comments it seems to happen with specific Python versions. |
I believe that the zip file is slightly corrupt, leading to undefined behaviour. See for example the discussion in https://stackoverflow.com/questions/4923142/zipfile-cant-handle-some-type-of-zip-data. I don't know how to fix this on my end. |
@breuderink Thanks for your reply. The problem have already been solved. However, I am still having one confusion about CSP feature extraction method. Is this CSP just available for the classification of two classes? how about multi-class case with JAD? |
Just two classes. I suggest to use the approach presented in [1] for multiple classes, it is much more elegant. [1] Roijendijk, Linsey, Stan Gielen, and Jason Farquhar. "Classifying regularized sensor covariance matrices: an alternative to CSP." IEEE Transactions on Neural Systems and Rehabilitation Engineering 24.8 (2016): 893-900. |
Hello,
When trying to run the py file in the example folder, I get the following error and can't fix it. Does someone have anything to help ?
zipfile.BadZipfile: File is not a zip file
The error is on this line :
tr = zipfile.ZipFile(ds.open(URL_TR % subject))
Thank you !
The text was updated successfully, but these errors were encountered: