<div dir="ltr"><div>Dear Jean-Remi,<br><br><br>Below is information you asked for.<br></div>MEG channels are 0 to 305.<br><div><div><br>Elena<br><br>######################<br>raw._data.shape<br>(336, 247500)<br><br>reject<br> {&#39;grad&#39;: 2.5e-10, &#39;mag&#39;: 6e-12}<br><br>picks<br>array([  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,<br>        13,  14,  15,  16,  17,  18,  19,  20,  21,  22,  23,  24,  25,<br>        26,  27,  28,  29,  30,  31,  32,  33,  34,  35,  36,  37,  38,<br>        39,  40,  41,  42,  43,  44,  45,  46,  47,  48,  49,  50,  51,<br>        52,  53,  54,  55,  56,  57,  58,  59,  60,  61,  62,  63,  64,<br>        65,  66,  67,  68,  69,  70,  71,  72,  73,  74,  75,  76,  77,<br>        78,  79,  80,  81,  82,  83,  84,  85,  86,  87,  88,  89,  90,<br>        91,  92,  93,  94,  95,  96,  97,  98,  99, 100, 101, 102, 103,<br>       104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,<br>       117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,<br>       130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,<br>       143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,<br>       156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,<br>       169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,<br>       182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,<br>       195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,<br>       208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,<br>       221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,<br>       234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,<br>       247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,<br>       260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,<br>       273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,<br>       286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,<br>       299, 300, 301, 302, 303, 304, 305])<br><br>raw.ch_names<br>Out[94]: <br>[u&#39;MEG0113&#39;,<br> u&#39;MEG0112&#39;,<br> u&#39;MEG0111&#39;,<br> u&#39;MEG0122&#39;,<br> u&#39;MEG0123&#39;,<br> u&#39;MEG0121&#39;,<br> u&#39;MEG0132&#39;,<br> u&#39;MEG0133&#39;,<br> u&#39;MEG0131&#39;,<br> u&#39;MEG0143&#39;,<br> u&#39;MEG0142&#39;,<br> u&#39;MEG0141&#39;,<br> u&#39;MEG0213&#39;,<br> u&#39;MEG0212&#39;,<br> u&#39;MEG0211&#39;,<br> u&#39;MEG0222&#39;,<br> u&#39;MEG0223&#39;,<br> u&#39;MEG0221&#39;,<br> u&#39;MEG0232&#39;,<br> u&#39;MEG0233&#39;,<br> u&#39;MEG0231&#39;,<br> u&#39;MEG0243&#39;,<br> u&#39;MEG0242&#39;,<br> u&#39;MEG0241&#39;,<br> u&#39;MEG0313&#39;,<br> u&#39;MEG0312&#39;,<br> u&#39;MEG0311&#39;,<br> u&#39;MEG0322&#39;,<br> u&#39;MEG0323&#39;,<br> u&#39;MEG0321&#39;,<br> u&#39;MEG0333&#39;,<br> u&#39;MEG0332&#39;,<br> u&#39;MEG0331&#39;,<br> u&#39;MEG0343&#39;,<br> u&#39;MEG0342&#39;,<br> u&#39;MEG0341&#39;,<br> u&#39;MEG0413&#39;,<br> u&#39;MEG0412&#39;,<br> u&#39;MEG0411&#39;,<br> u&#39;MEG0422&#39;,<br> u&#39;MEG0423&#39;,<br> u&#39;MEG0421&#39;,<br> u&#39;MEG0432&#39;,<br> u&#39;MEG0433&#39;,<br> u&#39;MEG0431&#39;,<br> u&#39;MEG0443&#39;,<br> u&#39;MEG0442&#39;,<br> u&#39;MEG0441&#39;,<br> u&#39;MEG0513&#39;,<br> u&#39;MEG0512&#39;,<br> u&#39;MEG0511&#39;,<br> u&#39;MEG0523&#39;,<br> u&#39;MEG0522&#39;,<br> u&#39;MEG0521&#39;,<br> u&#39;MEG0532&#39;,<br> u&#39;MEG0533&#39;,<br> u&#39;MEG0531&#39;,<br> u&#39;MEG0542&#39;,<br> u&#39;MEG0543&#39;,<br> u&#39;MEG0541&#39;,<br> u&#39;MEG0613&#39;,<br> u&#39;MEG0612&#39;,<br> u&#39;MEG0611&#39;,<br> u&#39;MEG0622&#39;,<br> u&#39;MEG0623&#39;,<br> u&#39;MEG0621&#39;,<br> u&#39;MEG0633&#39;,<br> u&#39;MEG0632&#39;,<br> u&#39;MEG0631&#39;,<br> u&#39;MEG0642&#39;,<br> u&#39;MEG0643&#39;,<br> u&#39;MEG0641&#39;,<br> u&#39;MEG0713&#39;,<br> u&#39;MEG0712&#39;,<br> u&#39;MEG0711&#39;,<br> u&#39;MEG0723&#39;,<br> u&#39;MEG0722&#39;,<br> u&#39;MEG0721&#39;,<br> u&#39;MEG0733&#39;,<br> u&#39;MEG0732&#39;,<br> u&#39;MEG0731&#39;,<br> u&#39;MEG0743&#39;,<br> u&#39;MEG0742&#39;,<br> u&#39;MEG0741&#39;,<br> u&#39;MEG0813&#39;,<br> u&#39;MEG0812&#39;,<br> u&#39;MEG0811&#39;,<br> u&#39;MEG0822&#39;,<br> u&#39;MEG0823&#39;,<br> u&#39;MEG0821&#39;,<br> u&#39;MEG0913&#39;,<br> u&#39;MEG0912&#39;,<br> u&#39;MEG0911&#39;,<br> u&#39;MEG0923&#39;,<br> u&#39;MEG0922&#39;,<br> u&#39;MEG0921&#39;,<br> u&#39;MEG0932&#39;,<br> u&#39;MEG0933&#39;,<br> u&#39;MEG0931&#39;,<br> u&#39;MEG0942&#39;,<br> u&#39;MEG0943&#39;,<br> u&#39;MEG0941&#39;,<br> u&#39;MEG1013&#39;,<br> u&#39;MEG1012&#39;,<br> u&#39;MEG1011&#39;,<br> u&#39;MEG1023&#39;,<br> u&#39;MEG1022&#39;,<br> u&#39;MEG1021&#39;,<br> u&#39;MEG1032&#39;,<br> u&#39;MEG1033&#39;,<br> u&#39;MEG1031&#39;,<br> u&#39;MEG1043&#39;,<br> u&#39;MEG1042&#39;,<br> u&#39;MEG1041&#39;,<br> u&#39;MEG1112&#39;,<br> u&#39;MEG1113&#39;,<br> u&#39;MEG1111&#39;,<br> u&#39;MEG1123&#39;,<br> u&#39;MEG1122&#39;,<br> u&#39;MEG1121&#39;,<br> u&#39;MEG1133&#39;,<br> u&#39;MEG1132&#39;,<br> u&#39;MEG1131&#39;,<br> u&#39;MEG1142&#39;,<br> u&#39;MEG1143&#39;,<br> u&#39;MEG1141&#39;,<br> u&#39;MEG1213&#39;,<br> u&#39;MEG1212&#39;,<br> u&#39;MEG1211&#39;,<br> u&#39;MEG1223&#39;,<br> u&#39;MEG1222&#39;,<br> u&#39;MEG1221&#39;,<br> u&#39;MEG1232&#39;,<br> u&#39;MEG1233&#39;,<br> u&#39;MEG1231&#39;,<br> u&#39;MEG1243&#39;,<br> u&#39;MEG1242&#39;,<br> u&#39;MEG1241&#39;,<br> u&#39;MEG1312&#39;,<br> u&#39;MEG1313&#39;,<br> u&#39;MEG1311&#39;,<br> u&#39;MEG1323&#39;,<br> u&#39;MEG1322&#39;,<br> u&#39;MEG1321&#39;,<br> u&#39;MEG1333&#39;,<br> u&#39;MEG1332&#39;,<br> u&#39;MEG1331&#39;,<br> u&#39;MEG1342&#39;,<br> u&#39;MEG1343&#39;,<br> u&#39;MEG1341&#39;,<br> u&#39;MEG1412&#39;,<br> u&#39;MEG1413&#39;,<br> u&#39;MEG1411&#39;,<br> u&#39;MEG1423&#39;,<br> u&#39;MEG1422&#39;,<br> u&#39;MEG1421&#39;,<br> u&#39;MEG1433&#39;,<br> u&#39;MEG1432&#39;,<br> u&#39;MEG1431&#39;,<br> u&#39;MEG1442&#39;,<br> u&#39;MEG1443&#39;,<br> u&#39;MEG1441&#39;,<br> u&#39;MEG1512&#39;,<br> u&#39;MEG1513&#39;,<br> u&#39;MEG1511&#39;,<br> u&#39;MEG1522&#39;,<br> u&#39;MEG1523&#39;,<br> u&#39;MEG1521&#39;,<br> u&#39;MEG1533&#39;,<br> u&#39;MEG1532&#39;,<br> u&#39;MEG1531&#39;,<br> u&#39;MEG1543&#39;,<br> u&#39;MEG1542&#39;,<br> u&#39;MEG1541&#39;,<br> u&#39;MEG1613&#39;,<br> u&#39;MEG1612&#39;,<br> u&#39;MEG1611&#39;,<br> u&#39;MEG1622&#39;,<br> u&#39;MEG1623&#39;,<br> u&#39;MEG1621&#39;,<br> u&#39;MEG1632&#39;,<br> u&#39;MEG1633&#39;,<br> u&#39;MEG1631&#39;,<br> u&#39;MEG1643&#39;,<br> u&#39;MEG1642&#39;,<br> u&#39;MEG1641&#39;,<br> u&#39;MEG1713&#39;,<br> u&#39;MEG1712&#39;,<br> u&#39;MEG1711&#39;,<br> u&#39;MEG1722&#39;,<br> u&#39;MEG1723&#39;,<br> u&#39;MEG1721&#39;,<br> u&#39;MEG1732&#39;,<br> u&#39;MEG1733&#39;,<br> u&#39;MEG1731&#39;,<br> u&#39;MEG1743&#39;,<br> u&#39;MEG1742&#39;,<br> u&#39;MEG1741&#39;,<br> u&#39;MEG1813&#39;,<br> u&#39;MEG1812&#39;,<br> u&#39;MEG1811&#39;,<br> u&#39;MEG1822&#39;,<br> u&#39;MEG1823&#39;,<br> u&#39;MEG1821&#39;,<br> u&#39;MEG1832&#39;,<br> u&#39;MEG1833&#39;,<br> u&#39;MEG1831&#39;,<br> u&#39;MEG1843&#39;,<br> u&#39;MEG1842&#39;,<br> u&#39;MEG1841&#39;,<br> u&#39;MEG1912&#39;,<br> u&#39;MEG1913&#39;,<br> u&#39;MEG1911&#39;,<br> u&#39;MEG1923&#39;,<br> u&#39;MEG1922&#39;,<br> u&#39;MEG1921&#39;,<br> u&#39;MEG1932&#39;,<br> u&#39;MEG1933&#39;,<br> u&#39;MEG1931&#39;,<br> u&#39;MEG1943&#39;,<br> u&#39;MEG1942&#39;,<br> u&#39;MEG1941&#39;,<br> u&#39;MEG2013&#39;,<br> u&#39;MEG2012&#39;,<br> u&#39;MEG2011&#39;,<br> u&#39;MEG2023&#39;,<br> u&#39;MEG2022&#39;,<br> u&#39;MEG2021&#39;,<br> u&#39;MEG2032&#39;,<br> u&#39;MEG2033&#39;,<br> u&#39;MEG2031&#39;,<br> u&#39;MEG2042&#39;,<br> u&#39;MEG2043&#39;,<br> u&#39;MEG2041&#39;,<br> u&#39;MEG2113&#39;,<br> u&#39;MEG2112&#39;,<br> u&#39;MEG2111&#39;,<br> u&#39;MEG2122&#39;,<br> u&#39;MEG2123&#39;,<br> u&#39;MEG2121&#39;,<br> u&#39;MEG2133&#39;,<br> u&#39;MEG2132&#39;,<br> u&#39;MEG2131&#39;,<br> u&#39;MEG2143&#39;,<br> u&#39;MEG2142&#39;,<br> u&#39;MEG2141&#39;,<br> u&#39;MEG2212&#39;,<br> u&#39;MEG2213&#39;,<br> u&#39;MEG2211&#39;,<br> u&#39;MEG2223&#39;,<br> u&#39;MEG2222&#39;,<br> u&#39;MEG2221&#39;,<br> u&#39;MEG2233&#39;,<br> u&#39;MEG2232&#39;,<br> u&#39;MEG2231&#39;,<br> u&#39;MEG2242&#39;,<br> u&#39;MEG2243&#39;,<br> u&#39;MEG2241&#39;,<br> u&#39;MEG2312&#39;,<br> u&#39;MEG2313&#39;,<br> u&#39;MEG2311&#39;,<br> u&#39;MEG2323&#39;,<br> u&#39;MEG2322&#39;,<br> u&#39;MEG2321&#39;,<br> u&#39;MEG2332&#39;,<br> u&#39;MEG2333&#39;,<br> u&#39;MEG2331&#39;,<br> u&#39;MEG2343&#39;,<br> u&#39;MEG2342&#39;,<br> u&#39;MEG2341&#39;,<br> u&#39;MEG2412&#39;,<br> u&#39;MEG2413&#39;,<br> u&#39;MEG2411&#39;,<br> u&#39;MEG2423&#39;,<br> u&#39;MEG2422&#39;,<br> u&#39;MEG2421&#39;,<br> u&#39;MEG2433&#39;,<br> u&#39;MEG2432&#39;,<br> u&#39;MEG2431&#39;,<br> u&#39;MEG2442&#39;,<br> u&#39;MEG2443&#39;,<br> u&#39;MEG2441&#39;,<br> u&#39;MEG2512&#39;,<br> u&#39;MEG2513&#39;,<br> u&#39;MEG2511&#39;,<br> u&#39;MEG2522&#39;,<br> u&#39;MEG2523&#39;,<br> u&#39;MEG2521&#39;,<br> u&#39;MEG2533&#39;,<br> u&#39;MEG2532&#39;,<br> u&#39;MEG2531&#39;,<br> u&#39;MEG2543&#39;,<br> u&#39;MEG2542&#39;,<br> u&#39;MEG2541&#39;,<br> u&#39;MEG2612&#39;,<br> u&#39;MEG2613&#39;,<br> u&#39;MEG2611&#39;,<br> u&#39;MEG2623&#39;,<br> u&#39;MEG2622&#39;,<br> u&#39;MEG2621&#39;,<br> u&#39;MEG2633&#39;,<br> u&#39;MEG2632&#39;,<br> u&#39;MEG2631&#39;,<br> u&#39;MEG2642&#39;,<br> u&#39;MEG2643&#39;,<br> u&#39;MEG2641&#39;,<br> u&#39;STI001&#39;,<br> u&#39;STI002&#39;,<br> u&#39;STI003&#39;,<br> u&#39;STI004&#39;,<br> u&#39;STI005&#39;,<br> u&#39;STI006&#39;,<br> u&#39;STI007&#39;,<br> u&#39;STI008&#39;,<br> u&#39;EEG030&#39;,<br> u&#39;EEG048&#39;,<br> u&#39;EEG057&#39;,<br> u&#39;EEG058&#39;,<br> u&#39;EEG059&#39;,<br> u&#39;EOG061&#39;,<br> u&#39;EOG062&#39;,<br> u&#39;ECG063&#39;,<br> u&#39;EMG064&#39;,<br> u&#39;MISC001&#39;,<br> u&#39;STI101&#39;,<br> u&#39;STI201&#39;,<br> u&#39;STI301&#39;,<br> u&#39;CHPI001&#39;,<br> u&#39;CHPI002&#39;,<br> u&#39;CHPI003&#39;,<br> u&#39;CHPI004&#39;,<br> u&#39;CHPI005&#39;,<br> u&#39;CHPI006&#39;,<br> u&#39;CHPI007&#39;,<br> u&#39;CHPI008&#39;,<br> u&#39;CHPI009&#39;]<br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2016 at 12:18, JR KING <span dir="ltr">&lt;<a href="mailto:jeanremi.king@gmail.com" target="_blank">jeanremi.king@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><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" target="_blank">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" target="_blank">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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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>
<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>