diff --git a/doc/changes/latest.inc b/doc/changes/latest.inc index 60900fecd09..2eba16bc534 100644 --- a/doc/changes/latest.inc +++ b/doc/changes/latest.inc @@ -37,6 +37,8 @@ Current (0.24.dev0) .. |Timothy Gates| replace:: **Timothy Gates** +.. |Reza Shoorangiz| replace:: **Reza Shoorangiz** + .. |Evgeny Goldstein| replace:: **Evgeny Goldstein** Enhancements @@ -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`_) diff --git a/doc/changes/names.inc b/doc/changes/names.inc index 579dbe3cf81..abeeb4be534 100644 --- a/doc/changes/names.inc +++ b/doc/changes/names.inc @@ -408,4 +408,6 @@ .. _Timothy Gates: https://github.com/timgates42 +.. _Reza Shoorangiz: https://github.com/rezashr + .. _Evgeny Goldstein: https://github.com/evgenygoldstein diff --git a/mne/io/curry/curry.py b/mne/io/curry/curry.py index 8e4d7003770..3f1493177e5 100644 --- a/mne/io/curry/curry.py +++ b/mne/io/curry/curry.py @@ -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