def _prepare_write_tfr(tfr, condition):
    return (condition, dict(times=tfr.times, freqs=tfr.freqs,
                            data=tfr.data, info=tfr.info,
                            nave=tfr.nave, comment=tfr.comment,
                            method=tfr.method))
Aux function
dataset/ETHPy150Open mne-tools/mne-python/mne/time_frequency/tfr.py/_prepare_write_tfr