# Using compute\_TFR or similar with EpochsEEGLAB

**URL:** <https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740>\
**Category:** Support & Discussions\
**Tags:** evoked, eeglab, epochs\
**Created:** [May 3, 2024, 8:15am UTC](https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740 "2024-05-03T08:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabebyc](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/gabebyc/32/3633_2.png) [@gabebyc](https://mne.discourse.group/u/gabebyc)\
**Post date:** [May 3, 2024, 8:15am UTC](https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740/1 "2024-05-03T08:15:45Z")

</div>

MNE version: 1.6.1  
operating system: Windows 10

Hello,

I am interesting in looking at ERDS (or other ERP characteristics) in my EEG data.

The data is preprocessed (filtered, downsampled, ICA’d, events added, and epoched) in EEGLAB, and saved as a .set file.

I loaded the set file as following:

`epochs = mne.read_epochs_eeglab(set_file)`

and epochs looks correct (# of Events, time range, baseline are correct).

Plotting also works, but when I try to use:

`epochs.compute_tfr()`

I received the following:

```python
----> 1 epochs.compute_tfr()

AttributeError: 'EpochsEEGLAB' object has no attribute 'compute_tfr'

```

I understand this is likely because mne.read\_epochs\_eeglab does not actually return an epochs class but instead EpochsEEGLAB (this has been clarified before ([Be more explicit about what is returned by read\_epochs\_eeglab and read\_epochs\_kit · Issue #12542 · mne-tools/mne-python · GitHub](https://github.com/mne-tools/mne-python/issues/12542)).

I guess my question is are there existing methods to either convert my EpochsEEGLAB into a usable Epochs class, or a different way to load the .set file to allow it?

---

<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:** [May 3, 2024, 9:25am UTC](https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740/2 "2024-05-03T09:25:26Z")

</div>

This is likely due to your version of MNE. If you look at the [documentation of Epochs.compute\_tfr](https://mne.tools/stable/generated/mne.Epochs.html#mne.Epochs.compute_tfr), you’ll see `New in v1.7` in the `Notes` section.  
If you update your MNE version, you will have access to this new method, released on the 19th of April 2024.

Mathieu

---

<div class="post-metadata">

**Author:** ![gabebyc](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/gabebyc/32/3633_2.png) [@gabebyc](https://mne.discourse.group/u/gabebyc)\
**Post date:** [May 3, 2024, 10:19am UTC](https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740/3 "2024-05-03T10:19:24Z")

</div>

Works! Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 10, 2024, 10:20am UTC](https://mne.discourse.group/t/using-compute-tfr-or-similar-with-epochseeglab/8740/4 "2024-05-10T10:20:10Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
