From 49bf0cfbbb902657bee805c723d70f37ba3a4f2e Mon Sep 17 00:00:00 2001 From: Reza Shoorangiz Date: Thu, 2 Sep 2021 19:32:16 +1200 Subject: [PATCH 1/3] FIX: Read events from ceo file. --- mne/io/curry/curry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 7d4d8183277d5dd8d0bfee1f56c5d687ed61e03b Mon Sep 17 00:00:00 2001 From: Reza Shoorangiz Date: Fri, 3 Sep 2021 08:19:59 +1200 Subject: [PATCH 2/3] Add reading .ceo events to read_raw_curry --- doc/changes/latest.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/changes/latest.inc b/doc/changes/latest.inc index 8bd5d98bdfe..e88533a617f 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** + Enhancements ~~~~~~~~~~~~ .. - Add something cool (:gh:`9192` **by new contributor** |New Contributor|_) @@ -157,7 +159,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`_) From bbe08533112a864772f709af9c057d0f3848e79d Mon Sep 17 00:00:00 2001 From: Reza Shoorangiz Date: Sat, 4 Sep 2021 07:47:03 +1200 Subject: [PATCH 3/3] Update names.inc --- doc/changes/names.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/changes/names.inc b/doc/changes/names.inc index 8efff29d108..c63cac3a6af 100644 --- a/doc/changes/names.inc +++ b/doc/changes/names.inc @@ -407,3 +407,5 @@ .. _Mathieu Scheltienne: https://github.com/mscheltienne .. _Timothy Gates: https://github.com/timgates42 + +.. _Reza Shoorangiz: https://github.com/rezashr