Skip to content

Commit

Permalink
Add uint16_codec argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Nov 18, 2024
1 parent c3c1f29 commit af8d890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mne/io/eeglab/_eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit af8d890

Please sign in to comment.