mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.67k stars 1.31k forks source link

Append functionality for AverageTFR #8994

Open adam2392 opened 3 years ago

adam2392 commented 3 years ago

Describe the new feature or enhancement

Similar to how Raw instances can be appended together, I was wondering if it is possible to include that for AverageTFR. Running instances separately, and it's useful for me to append these together in my workflo.w

Describe your proposed implementation

Essentially take Raw.append and copy it over with additional checks on the frequency axis.

agramfort commented 3 years ago

why do you need this? can you append the raw and compute on this?

adam2392 commented 3 years ago

My workflow rn consists of different recording sessions. I’m running a tfr spectral analysis and saving output as mne h5 files.

But when I do some post analysis I want to join them into one contiguous chunk to explore how the freq content changes.

agramfort commented 3 years ago

can you cook up such a function in our own code base while you develop the use case and the results and we consider it adding this to MNE in the future?