-
Notifications
You must be signed in to change notification settings - Fork 20
Closed

Description
I get the following error when I try to read one of my .xdf
files:
~/lib/python3.7/site-packages/pyxdf/pyxdf.py in load_xdf(filename, select_streams, on_chunk, synchronize_clocks, handle_clock_resets, dejitter_timestamps, jitter_break_threshold_seconds, jitter_break_threshold_samples, clock_reset_threshold_seconds, clock_reset_threshold_stds, clock_reset_threshold_offset_seconds, clock_reset_threshold_offset_stds, winsor_threshold, verbose)
258 log_str = ' Read tag: {} at {} bytes, length={}'.format(tag, f.tell(), chunklen)
259 if tag in [2, 3, 4, 6]:
--> 260 StreamId = struct.unpack('<I', f.read(4))[0]
261 log_str += ', StreamId={}'.format(StreamId)
262 else:
error: unpack requires a buffer of 4 bytes
Although, I can easily read the same file using EEGLab in Matlab. Do you have any recommendations on how I can solve this?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels