Loading pre-processed .set (EEGLAB) file issue

Hey

I am trying to load EEGLAB .set file using mne.io.read_raw_eeglab
However I get the following warning:
if isinstance(data, scipy.io.matlab.mio5_params.MatlabOpaque):
C:\Users\carmelgashri\Miniconda3\envs\bm-336018\lib\site-packages\mne\externals\pymatreader\utils.py:212: DeprecationWarning: Please use MatlabOpaque from the scipy.io.matlab namespace, the scipy.io.matlab.mio5_params namespace is deprecated.

I am attaching a link to the file which I am trying to load ( EEGLAB pre-processed file
I think this warning affects my later analysis therefore I will appreciate any solution (I have to load it as EEGLAB .set file and not MATLAB .mat file)
I tried using unit16_codec as this is the only solution I found online but it did not work

Thank you for your help
Carmel

Hello,

As the name suggests, this is a warning and not an error. It does not impact the outcome of the function.
In this case, the warning is due to a change in the namespaces of scipy which is used to load files from MATLAB. It warns users to correct their code by using the new namespace instead of the deprecated one which will be removed in a later version.

EDIT: Also, loading your file from the development version of MNE (main), the deprecation warning does not come up, so this was probably already taken into account.

Mathieu

2 Likes