<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
Thanks I just did!!<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 25 Jun 2021, at 14:43, Andrade Rey René &lt;<a href="mailto:rene.andrade@edu.uah.es" class="">rene.andrade@edu.uah.es</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<p class=""><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<div class=""><br class="webkit-block-placeholder">
</div>
<div class=""><b class="">Dear MNE experts:</b></div>
<div class=""><b class=""><br class="">
</b></div>
<div class=""><b class="">I have one issue while computing an ERP topomap. I have tried plot_projs_topomap as well but always the same error. I thought it was an issue of the projections as 0 projections items are activated. I’m not sure.&nbsp;</b></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Not setting metadata</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Not setting metadata</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">307 matching events found</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Setting baseline interval to [-0.30078125, 0.0] sec</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Applying baseline correction (mode: mean)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">0 projection items activated</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Loading data for 307 events and 257 original time points ...</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">1 bad epochs dropped</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py:570: RuntimeWarning: invalid value encountered in arcsin</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; angle = np.arcsin(distance / np.mean(radii))</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Traceback (most recent call last):</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/Dropbox/Aplicaciones/Mind_Monitor/others/postprocessing/erp_mne.py&quot;, line 57, in &lt;module&gt;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; fig = rest_exp3.plot_topomap(times, average=0.05)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/evoked.py&quot;, line 346, in plot_topomap</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; return plot_evoked_topomap(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py&quot;, line 1666, in plot_evoked_topomap</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; tp, cn, interp = _plot_topomap(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py&quot;, line 903, in _plot_topomap</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; extent, Xi, Yi, interp = _setup_interp(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py&quot;, line 791, in _setup_interp</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; interp = _GridData(pos, extrapolate, clip_origin, clip_radius, border)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py&quot;, line 602, in __init__</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; outer_pts, mask_pts, tri = _get_extra_points(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/Users/andraderenew/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/viz/topomap.py&quot;, line 571, in _get_extra_points</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; n_pnts = max(12, int(np.round(2 * np.pi / angle)))</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">ValueError: cannot convert float NaN to integer</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<br class="">
</div>
<div class=""><b class="">I use this code below.&nbsp;</b></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(28, 0, 207); background-color: rgb(255, 255, 255);" class="">
<span style="" class="">exp3=mne.io.read_raw_edf(</span>'/Users/andraderenew/Dropbox/Aplicaciones/Mind_Monitor/others/postprocessing/exp3.edf'<span style="" class="">, preload=</span><span style="color: #9b2393" class=""><b class="">True</b></span><span style="" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
exp3.filter(<span style="color: #1c00cf" class="">1</span>,<span style="color: #1c00cf" class="">30</span>, method=<span style="color: #1c00cf" class="">'iir'</span>)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
events_exp3=mne.make_fixed_length_events(exp3, duration=<span style="color: #1c00cf" class="">1.0</span>)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
exp3=exp3.copy().set_montage(ten_five)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
epochs_exp3 = mne.Epochs(exp3, events_exp3, event_id={<span style="color: #1c00cf" class="">'resting_state'</span>:<span style="color: #1c00cf" class="">1</span>}, tmin=<span style="color: #1c00cf" class="">-0.3</span>, tmax=<span style="color: #1c00cf" class="">0.7</span>,
 preload=<span style="color: #9b2393" class=""><b class="">True</b></span>)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
rest_exp3=epochs_exp3[<span style="color: #1c00cf" class="">'resting_state'</span>].average()</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
fig_exp3=rest_exp3.plot(spatial_colors=<span style="color: #9b2393" class=""><b class="">True</b></span>)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
rest_exp3.plot(gfp=<span style="color: #9b2393" class=""><b class="">True</b></span>, spatial_colors=<span style="color: #9b2393" class=""><b class="">True</b></span>, ylim=dict(eeg=[<span style="color: #1c00cf" class="">-12</span>,
<span style="color: #1c00cf" class="">12</span>]))</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
times = np.linspace(<span style="color: #1c00cf" class="">0.05</span>, <span style="color: #1c00cf" class="">
0.15</span>, <span style="color: #1c00cf" class="">5</span>)</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
fig = rest_exp3.plot_topomap(times, average=<span style="color: #1c00cf" class="">0.05</span>)</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">&nbsp;</div>
</div>
<div class=""><b class="">Thanks for all the help win advance!!</b></div>
<div class=""><b class=""><br class="">
</b></div>
<div class=""><b class="">Best,&nbsp;</b></div>
<div class=""><b class="">Rene Andrade.&nbsp;</b></div>
</div>
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</div>
</blockquote>
</div>
<br class="">
</body>
</html>