<div dir="ltr">For each of your Evoked instances, what is `Evoked.comment`? I suspect it is "Unknown". You can set this to any string you'd like.<div><br></div><div>We could/should probably also make it give a better comment by default.<br><div><br></div><div>Eric</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 5:19 PM, Megan Schendel <span dir="ltr"><<a href="mailto:mschendel@mrn.org" target="_blank">mschendel@mrn.org</a>></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>Hi all,<br></div>I'm wondering if there's a way to keep my labeling for different evokeds when I use the write_evokeds module.<br> <br></div>If I open the ave.fif file in Neuromag's xplotter tool, I just see a list like <br>(1) date and time> Unknown>average<br>(2)date and time >Unknown>average<div><div><div><br></div><div>When we had done this before in matlab, we edited the structure field for "comment," like so:<br></div><div>descriptor.evoked.comment = cond_descr{'a meaningful label'}<br></div><div></div><div><br></div><div>FYI, I have my evokeds built in a conditions list loop, where the actual evokeds are stored as keys in a dictionary. <br>Something like this:<br><br></div><div>for condition in conditions:<br> epochs[str(condition) + '_epochs'] = mne.Epochs(params...)<br> evoked[str(condition) + '_evoked']= epochs[str(condition) + '_epochs'].average()<br> evoked_list.append(evoked[str(<wbr>condition) + '_evoked'])<br><br></div><div>mne.write_evokeds(fname_<wbr>evoked, evoked_list)<br><br></div><div>Thanks!<br></div><div>Megan<br></div><div><br clear="all"><div><div class="m_-7559281252197903512gmail_signature">MEG Technician<br>The Mind Research Network<br>1101 Yale Blvd. NE<br>Albuquerque, New Mexico 87106<br><a href="tel:(505)%20272-3304" value="+15052723304" target="_blank">505-272-3304</a><br><br></div></div>
</div></div></div></div>
<br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>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/<wbr>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>