<div dir="ltr"><div><div><div>Dear Elena,<br><br></div>This may be due to this bug fix: <br><br><a href="https://github.com/mne-tools/mne-python/pull/3055/files">https://github.com/mne-tools/mne-python/pull/3055/files</a><br><br></div>Previously, a synthetic ecg channel was incorrectly created even when the ecg channel was set by the user.<br><br></div>To check that the `<span style="font-family:monospace,monospace">create_ecg_epochs`</span> function works on your computer, try:<br><br>```<br><div><div><span style="font-family:monospace,monospace">from <a href="http://mne.io">mne.io</a> import Raw<br>from mne.preprocessing import create_ecg_epochs<br>from mne.datasets import sample<br><br>data_path = sample.data_path()<br>fname = data_path + &#39;/MEG/sample/sample_audvis_filt-0-40_raw.fif&#39;<br>raw = Raw(fname, preload=True)<br><br>ecg_epochs = create_ecg_epochs(raw, tmin=-.15, tmax=.4,<br>                               l_freq=1.0, h_freq=20.0,<br>                               reject=dict(grad=4000e-13),<br>                               ch_name=None, picks=None)</span><br> ```<br><br></div><div>I haven&#39;t been able to reproduce your error, so I suspect that there is something wrong with your raw. Can you report us<br><br>```<br></div><div><span style="font-family:monospace,monospace">raw._data.shape<br></span></div><div><span style="font-family:monospace,monospace">raw.ch_names<br></span></div><div><span style="font-family:monospace,monospace">reject<br></span></div><div><span style="font-family:monospace,monospace">picks</span><br>```<br><br></div><div>Best,<br><br></div><div>Jean-Rémi<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2016 at 04:52, Elena Orekhova <span dir="ltr">&lt;<a href="mailto:orekhova.elena.v@gmail.com" target="_blank">orekhova.elena.v@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><div>Hello mne developers,<br><br></div>I upgraded to mne-12 by <br>% pip install --upgrade --user mne<br><br></div>(although the output indicates  that in this way I installed mne-0.11.0 ...?  See below )<br><div><div><div>#################<br>Collecting mne<br>   Using cached mne-0.12.0.tar.gz<br>Installing collected packages: mne<br>  Running setup.py install for mne ... done<br>Successfully installed mne-0.11.0<br>################<br><br></div><div>After the upgrade  running this line (that previously worked OK) <br>ecg_epochs = create_ecg_epochs(RAW, reject=reject, tmin=-.15, tmax=.4, ch_name=ECG_ch,  l_freq=1.0, h_freq=20.0,  picks=picks)<br>gives me an error:<br>Data must be a 2D array of shape (n_channels, n_samples<br><br>The full error output is below.<br></div><div>I believe that this relates to the upgrade.<br></div><div><br>Regards,<br></div><div>Elena<br></div><div><br></div><div><br></div><div><br></div></div></div></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>