Python MNE: how to compute continuous wavelets?
<p>The <a href="http://martinos.org/mne/stable/generated/mne.time_frequency.cwt_morlet.html#mne.time_frequency.cwt_morlet" rel="nofollow">Python MNE API</a> says I should compute continuous wavelets by</p>

<pre><code>mne.time_frequency.cwt_morlet(X, sampling_frequency, frequencies_of_interest)
</code></pre>

<p>However, when I make X equal to a raw .fif data file, it throws</p>

<pre><code>287     # mode = "valid"
288     decim = _check_decim(decim)
--&gt; 289     n_signals, n_times = X[:, decim].shape
290
291     # Precompute wavelets for given frequency range to save time

AttributeError: 'tuple' object has no attribute 'shape'
</code></pre>

<p>What am I doing wrong?</p>