Skip to content

FIX: Read events from ceo file. #9712

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

Merged
merged 4 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion doc/changes/latest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Current (0.24.dev0)

.. |Timothy Gates| replace:: **Timothy Gates**

.. |Reza Shoorangiz| replace:: **Reza Shoorangiz**

.. |Evgeny Goldstein| replace:: **Evgeny Goldstein**

Enhancements
Expand Down Expand Up @@ -161,7 +163,7 @@ Bugs

- Fix bug with :meth:`mne.Epochs.crop` and :meth:`mne.Evoked.crop` when ``include_tmax=False``, where the last sample was always cut off, even when ``tmax > epo.times[-1]`` (:gh:`9378` **by new contributor** |Jan Sosulski|_)

- Fix bug with `mne.io.read_raw_curry` to allow reading Curry 8 event files with '.cdt.ceo' extension (:gh:`9381` by **new contributor** |Xiaokai Xia|_ and `Daniel McCloy`_)
- Fix bug with `mne.io.read_raw_curry` to allow reading Curry 7 and 8 event files with '.ceo' and '.cdt.ceo' extensions (:gh:`9381`, :gh:`9712` by **new contributor** |Xiaokai Xia|_, `Daniel McCloy`_, and **by new contributor** |Reza Shoorangiz|_)

- Fix bug with :func:`mne.io.read_raw_nihon` where latin-1 annotations could not be read (:gh:`9384` by `Alex Gramfort`_)

Expand Down
2 changes: 2 additions & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,6 @@

.. _Timothy Gates: https://github.com/timgates42

.. _Reza Shoorangiz: https://github.com/rezashr

.. _Evgeny Goldstein: https://github.com/evgenygoldstein
4 changes: 2 additions & 2 deletions mne/io/curry/curry.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ def _read_events_curry(fname):
events : ndarray, shape (n_events, 3)
The array of events.
"""
check_fname(fname, 'curry event', ('.cef', '.cdt.cef', '.cdt.ceo'),
endings_err=('.cef', '.cdt.cef', '.cdt.ceo'))
check_fname(fname, 'curry event', ('.cef', '.ceo', '.cdt.cef', '.cdt.ceo'),
endings_err=('.cef', '.ceo', '.cdt.cef', '.cdt.ceo'))

events_dict = _read_curry_lines(fname, ["NUMBER_LIST"])
# The first 3 column seem to contain the event information
Expand Down