question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't read EDF file: AssertionError

See original GitHub issue

Hi,

I am trying to open raw EEG file in EDF format.

import mne data = mne.io.read_raw_edf(r"C:\Users\CDM\Documents\elevchenko\Sync_EEG_NT\example.edf")

But the next error occurs:

AssertionError:

I am attaching this file. example.zip

I am using ‘0.18.2’ version of MNE.

I don’t understand where the problem is, but I guess something with encoding.

I will be very thankful for any comments.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Sep 23, 2019

Great, thanks for following up @levchenkoegor

0reactions
levchenkoegorcommented, Sep 23, 2019

Just a little update - the problem was that colleagues send me these files not raw, but after manipulations in their software. This software is making format of the file incompatible with other toolboxes as I understood.

I think it is can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to read .edf file - Support & Discussions - MNE Forum
I tried reading with other method: PyEDFlib, I was unable to read. Problem is with my .edf file only. Thank you for the...
Read more >
What's new — MNE 1.2.2 documentation
Annotations contained in EDF files are correctly read as UTF-8 according to the EDF specification (#10963 by Clemens Brunner).
Read more >
Source code for pyedflib.highlevel
Created on Tue Jan 7 12:13:47 2020 This file contains high-level functions to work with ... Convenience function for reading EDF+/BDF data with...
Read more >
pyedflib - Bountysource
I can't read EDF files when the file path contains Japanese characters. ... reading and writing again leads to write_edf failing with AssertionError...
Read more >
visbrain-python/Sleep - Gitter
The GUI is loading but it seems that PyQT5 does not work correctly : I have a lot of error warnings in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found