<div dir="ltr">This is fixed: seemed to be a problem with numpy/scipy. Updating them to newer versions solved this problem!</div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=ac2FtbWkuci5jaGVrcm91ZEBnbWFpbC5jb20%3D&amp;type=zerocontent&amp;guid=be51c3ae-d337-4079-9a38-2c1d5eef0659"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2017 at 08:54, Sammi Chekroud <span dir="ltr">&lt;<a href="mailto:sammi.r.chekroud@gmail.com" target="_blank">sammi.r.chekroud@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I&#39;m new to mne so sorry if this is a noob question, but for some reason both ICA and interpolate_bads seem to keep breaking down my python kernel when i try to run them. Any suggestions? more details below (including code used)<br><br></div><div>- running version 0.14dev0 to read the cnt format as that didn&#39;t work on the stable version initially<br></div>- reading EEG data from the CNT format:<br><br></div><i>data = mne.io.read_raw_cnt(fname, montage = &#39;standard_1005&#39;, date_format = &#39;dd/mm/yy&#39;, eog = [&#39;VEOG&#39;, &#39;HEOG&#39;], misc = [&#39;RM&#39;], preload = True)</i><br><br></div>- rereferencing (to &#39;RM&#39; channel) and resampling to 250hz, then filtering between 0.1 and 40Hz<br><br></div><div><i># I know this is creating new vars, but this is deliberate</i><br></div><i>reref = data.set_eeg_reference(ref_cha<wbr>nnels = [&#39;RM&#39;])<br></i></div><i>resamp = reref.resample(250)<br></i></div><i>filtered = resamp.filter(0.1,40)</i><br><br></div>it will extract events and epoch data properly, e.g.<br><br></div><i>encodingEpochs = mne.Epochs(filtered, events, events_encode, tmin, tmax, baseline = baseline, preload = True)</i><br><br></div>if I try to ICA on either the filtered data:<br><br></div><i>ica = mne.preprocessing.ICA(n_compon<wbr>ents=0.95).fit(filtered)</i><br><br></div>or on the epoched data:<br><br></div><i>ica = mne.preprocessing.ICA(n_compon<wbr>ents=0.95).fit(encodingEpochs)</i><br><br></div>then I get the following:<br><br></div><div style="font-size:12.8px">Fitting ICA to data using 61 channels<br></div><div style="font-size:12.8px">Please be patient, this may take some time<br></div><div style="font-size:12.8px">Inferring max_pca_components from picks<br></div><div style="font-size:12.8px"><b><i>It seems the kernel died unexpectedly. Use &#39;Restart Kernel&#39; to continue using this console<br><br><br></i></b></div><div style="font-size:12.8px">this also happens if I try to interpolate bad channels, e.g.:<br><br></div><div style="font-size:12.8px"><i>filtered.interpolate_bads(rese<wbr>t_bads=False)<br><br><br></i></div><div style="font-size:12.8px">Sorry for the potentially excessive info, but hope it clarifies the problem that I&#39;m having! Any help would be greatly appreciated. <br><br></div><div style="font-size:12.8px">Thanks!</div></div>
</blockquote></div><br></div>