-
Notifications
You must be signed in to change notification settings - Fork 18
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: unpack requires a buffer of 4 bytes #61
Comments
That suggests that you've reached the end of the file buffer, but if True then it should have followed a different code path to break out of the loop. |
I tried loading the file with libxdf using the simple loader executable from xdf-modules/libxdf#26, but I also get an error:
This indicates that the file is not valid XDF. I wonder why it works in MATLAB though (can't test because I don't have MATLAB). |
I just checked it again with MATLAB and it raises this warning:
But it still outputs the data inside the file without any errors. It would be nice if we could get rid of this error in |
Do you know if your eegplugin_xdfimport is the latest version? Could you try comparing it to https://github.com/xdf-modules/xdf-EEGLAB? (Note that uses xdf-Matlab as a submodule) I'm not about to install and try to remember how to use EEGLAB, but if your EEGLAB importer is using the same version as general xdf-Matlab then I can test the file on my local Matlab install. |
@cboulay I checked it and it is the latest version. It is using exactly the same code as in https://github.com/xdf-modules/xdf-EEGLAB |
@FarnoodF How did you record this datafile? Did you use LabRecorder? Can you think of anything that was different about this file that might lead to a ghost stream? While we COULD modify pyxdf to not fail when it encounters a 0-byte stream with no header, really the better solution is to figure out how this happened in the first place and prevent it from happening again. |
So there is only one valid stream inside, to be more specific, EEG with 18 channels, and 500 Hz sampling rate. Is this as expected, or did you also plan to record more than this stream? |
Thank you guys for your time. |
I understand that you recorded the stream with SMARTING streamer, and not with LabRecorder? If that's the case, you might want to inform their developers about the issue. |
* Parse streamid only if not b'' Resolve #61 * Scan forward when StreamId can not be parsed Prevents carrying the StreamId of None forward in the code, where it could induce cryptic errors * Clarify flow-control with try-except-else * Add changelog entry Co-authored-by: Clemens Brunner <clemens.brunner@gmail.com>
I get the following error when I try to read one of my
.xdf
files:Although, I can easily read the same file using EEGLab in Matlab. Do you have any recommendations on how I can solve this?
Thanks.
The text was updated successfully, but these errors were encountered: