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
Error reading EEGLAB file (buffer too small) #10012
Comments
@thht something you could potentially fix or rather |
it's due to a change in scipy or in mne?
… |
as it is the scipy function that throws the error, we should ask them. pymatreader only touches what is returned. and i just double-checked: even with the default options, |
the file loads fine in matlab, though.... but i noticed some non-ascii characters in one of the fields:
when i set this field to an empty string, it loads fine with scipy. |
It's always character encodings, that's for sure. Thanks for checking @thht! How do we proceed? |
fix scipy but this will take time and before fix the file with matlab
to be able to load it as is
my 2c
|
I remember we had this problem before (but I couldnt find related issue or pull request now) and this is why we've exposed |
Quoting the docs for the
|
Nice find @mmagnuski! If anyone can confirm that this works with the problematic file, this issue can be closed. |
I also have this problem! |
@MoonPlatinum would you be able to share the problematic file with us? Also, it would be great if you posted the errors as text (formatted as code) instead of screenshots here. |
@MoonPlatinum does the solution work for you? |
Thank you !!! raw = mne.io.read_epochs_eeglab('0928H_DFI.set', uint16_codec='latin-1') /Users/tianbiwang/.conda/envs/pythonProject1/bin/python /Users/tianbiwang/PycharmProjects/pythonProject1/pythonks/demo2.py raw = mne.io.read_raw_eeglab('0928H_DFI.set', uint16_codec='latin-1') Process finished with exit code 1 |
1.import mne raw = mne.io.read_epochs_eeglab('0928H_DFI.set', uint16_codec='latin-1') /Users/tianbiwang/.conda/envs/pythonProject1/bin/python /Users/tianbiwang/PycharmProjects/pythonProject1/pythonks/demo2.py 2.import mne raw = mne.io.read_raw_eeglab('0928H_DFI.set', uint16_codec='latin-1') Process finished with exit code 1 |
@cbrnr |
Are you sure the files you are trying to read are epochs? The error you get now suggests you to use |
I have tried both methods, but they still can't run successfully. |
I asked others to help upload the data file. Can you help me try how to run successfully? |
Could you post the error you get when using |
|
And I also provided the original data in the above answer. Can you help me have a look? |
Not sure why, but |
i just tried to load it in matlab:
so, not even matlab can read the file.... |
Thanks @thht! So I guess this explains the issue. @MoonPlatinum can you maybe try to save this in a different format? If this is exported from EEGLAB I think you should ask the EEGLAB developers as this seems like a problem on their end. |
Thanks a lot for your help to me, this file can't be loaded directly with matlab, but it can be read into matlab by eeglab plugin, my problem is that the file can't be read by mne library of python environment, I don't know why this is. |
Can you maybe convert the files to a format which is readable in other packages? EEGLAB should let you choose the export format. |
This issue was reported in our forum using this example file.
It looks like this is related to reading the .mat file.
The text was updated successfully, but these errors were encountered: