# Loading pre-processed .set (EEGLAB) file issue

**URL:** <https://mne.discourse.group/t/loading-pre-processed-set-eeglab-file-issue/5050>\
**Category:** Support & Discussions\
**Created:** [June 14, 2022, 11:12am UTC](https://mne.discourse.group/t/loading-pre-processed-set-eeglab-file-issue/5050 "2022-06-14T11:12:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarmelGashri](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/carmelgashri/32/1565_2.png) [@CarmelGashri](https://mne.discourse.group/u/CarmelGashri)\
**Post date:** [June 14, 2022, 11:12am UTC](https://mne.discourse.group/t/loading-pre-processed-set-eeglab-file-issue/5050/1 "2022-06-14T11:12:02Z")

</div>

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](https://technionmail-my.sharepoint.com/:f:/g/personal/neuro_technion_ac_il/Ej5F9YfHmaVEkqfca30fo94BLKlnQW6-qFHA1grklm4qaA?e=IpAJeT)  
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

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [June 14, 2022, 11:30am UTC](https://mne.discourse.group/t/loading-pre-processed-set-eeglab-file-issue/5050/2 "2022-06-14T11:30:48Z")

</div>

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
