<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello MNE list, <br>
</p>
<p>We are getting an error related to the dtype of the data when
running the mne.io.Raw filter function. <br>
</p>
<p> To give some context of our process, <br>
</p>
<ol>
<li>We are generating the raw objects from scratch. The data
generating the raw object are in the form of dtype('float64')<br>
<br>
</li>
<li>So we end up with 3 channels 'eeg', 'eog' and 'stim' <br>
<br>
[OUT]<br>
<pre style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 1px 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: rgb(0, 0, 0); background-color: transparent; border: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">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.</pre>
<br>
</li>
<li>We then append all channels into the raw ['eeg'] object. <br>
</li>
<li>Now when attempting to run the filter function (The code below
is also in the MNE example repo
<a class="moz-txt-link-freetext" href="http://mne-tools.github.io/stable/auto_examples/time_frequency/plot_time_frequency_global_field_power.html">http://mne-tools.github.io/stable/auto_examples/time_frequency/plot_time_frequency_global_field_power.html</a><br>
<br>
<font size="+1"><tt>'''</tt><tt><br>
</tt><tt># bandpass filter and compute Hilbert</tt><tt><br>
</tt><tt><i>raw.filter(fmin, fmax, n_jobs=1,
l_trans_bandwidth=1.0, h_trans_bandwidth=1.0,
fir_design='firwin')</i></tt><tt><br>
</tt><tt>''' </tt></font> <br>
<br>
we are getting the following error: <br>
[OUT] <br>
</li>
</ol>
<pre style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 1px 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: rgb(0, 0, 0); background-color: transparent; border: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span class="ansi-red-fg" style="box-sizing: border-box; color: rgb(231, 92, 88);">        TypeError</span>: Arrays passed for filtering must have a dtype of np.float64</pre>
<p> Do you have any hints why the filter function is unable to
process the data? <br>
</p>
<br>
</body>
</html>