Skip to content

Commit

Permalink
Fix file format check in _check_eeglab_fname function (mne-tools#12523)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Larson <[email protected]>
Co-authored-by: Richard Höchenberger <[email protected]>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent 8590d35 commit a02838f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/changes/devel/12523.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove FDT file format check for strings in EEGLAB's EEG.data in :func:`mne.io.read_raw_eeglab` and related functions by :newcontrib:`Seyed Yahya Shirazi`
2 changes: 2 additions & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -611,3 +611,5 @@
.. _Zhi Zhang: https://github.com/tczhangzhi/

.. _Zvi Baratz: https://github.com/ZviBaratz

.. _Seyed Yahya Shirazi: https://neuromechanist.github.io
2 changes: 0 additions & 2 deletions mne/io/eeglab/eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ def _check_eeglab_fname(fname, dataname):
"Old data format .dat detected. Please update your EEGLAB "
"version and resave the data in .fdt format"
)
elif fmt != ".fdt":
raise OSError("Expected .fdt file format. Found %s format" % fmt)

basedir = op.dirname(fname)
data_fname = op.join(basedir, dataname)
Expand Down

0 comments on commit a02838f

Please sign in to comment.