Python demonstration code for reading EDF files

Skip to first unread message

Joseph Picone

Jul 17, 2019, 12:05:54 AM7/17/19
to nedc_tuh_eeg
At this URL:

you will find Python code that demonstrates how to correctly read and
EDF file and retrieve the correct channels.

This process is described in this document:

The Python code is self-contained and portable. It supports a very
flexible interface for specifying which channels to read and for
applying a montage.



Joseph Picone

Jul 17, 2019, 4:30:48 AM7/17/19
to nedc_tuh_eeg
I think people missed the point of this message. There are many packages
out there that claim to read EDF files. In fact, our code uses pyedflib
to read the EDF file. We are not advocating one over the other or
suggesting this code is a replacement for these packages.

Our software release addresses two important issues:

- accessing channels by channel label: you must do this if
you want to read the data properly. Channels are not in the same
order and are not always labeled the same way.

- implementing montages, such as a TCP montage: we provide a
specific example of what a TCP montage is.

If you are not familiar with these issues, please read this document:

If you are not taking care of these things in your code, you are
probably running your experiments incorrectly :(


> --
> You received this message because you are subscribed to the Google
> Groups "nedc_tuh_eeg: TUH EEG Corpus User Group" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
> <>.
> To post to this group, send email to
> <>.
> Visit this group at
> To view this discussion on the web visit
> For more options, visit
Reply all
Reply to author
0 new messages