[Mne_analysis] mne.io.Raw filter function. Type error: ...must have a dtype of np.float64,
Ilias Koen
ilias.koen at dukodestudio.com
Sat Mar 31 19:10:48 EDT 2018
Hello MNE list,
We are getting an error related to the dtype of the data when running
the mne.io.Raw filter function.
To give some context of our process,
1. We are generating the raw objects from scratch. The data generating
the raw object are in the form of dtype('float64')
2. So we end up with 3 channels 'eeg', 'eog' and 'stim'
[OUT]
Creating RawArray with float64 data, n_channels=1, n_times=116736
Range : 0 ... 116735 = 0.000 ... 227.998 secs
Ready.
Creating RawArray with float64 data, n_channels=1, n_times=116736
Range : 0 ... 116735 = 0.000 ... 227.998 secs
Ready.
228
Creating RawArray with float64 data, n_channels=1, n_times=116736
Range : 0 ... 116735 = 0.000 ... 227.998 secs
Ready.
3. We then append all channels into the raw ['eeg'] object.
4. Now when attempting to run the filter function (The code below is
also in the MNE example repo
http://mne-tools.github.io/stable/auto_examples/time_frequency/plot_time_frequency_global_field_power.html
'''
# bandpass filter and compute Hilbert
/raw.filter(fmin, fmax, n_jobs=1, l_trans_bandwidth=1.0,
h_trans_bandwidth=1.0, fir_design='firwin')/
'''
we are getting the following error:
[OUT]
TypeError: Arrays passed for filtering must have a dtype of np.float64
Do you have any hints why the filter function is unable to process
the data?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180331/8b4e1176/attachment.html
More information about the Mne_analysis
mailing list