From af8d890d8b8b231b14d75726db1202b88c282b72 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Mon, 18 Nov 2024 12:38:36 +0100 Subject: [PATCH] Add uint16_codec argument --- mne/io/eeglab/_eeglab.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mne/io/eeglab/_eeglab.py b/mne/io/eeglab/_eeglab.py index 173a1fd71bf..28df469fada 100644 --- a/mne/io/eeglab/_eeglab.py +++ b/mne/io/eeglab/_eeglab.py @@ -75,7 +75,9 @@ def _readmat(fname, uint16_codec=None): try: read_mat = _import_pymatreader_funcs("EEGLAB I/O") except RuntimeError: # pymatreader not installed - eeg = loadmat(fname, squeeze_me=True, mat_dtype=False) + eeg = loadmat( + fname, squeeze_me=True, mat_dtype=False, uint16_codec=uint16_codec + ) return _check_for_scipy_mat_struct(eeg) else: return read_mat(fname, uint16_codec=uint16_codec)