mne.write_evokeds(fname, evoked)

Hi all,
I'm wondering if there's a way to keep my labeling for different evokeds
when I use the write_evokeds module.

If I open the ave.fif file in Neuromag's xplotter tool, I just see a list
like
(1) date and time> Unknown>average
(2)date and time >Unknown>average

When we had done this before in matlab, we edited the structure field for
"comment," like so:
descriptor.evoked.comment = cond_descr{'a meaningful label'}

FYI, I have my evokeds built in a conditions list loop, where the actual
evokeds are stored as keys in a dictionary.
Something like this:

for condition in conditions:
    epochs[str(condition) + '_epochs'] = mne.Epochs(params...)
    evoked[str(condition) + '_evoked']= epochs[str(condition) +
'_epochs'].average()
    evoked_list.append(evoked[str(condition) + '_evoked'])

mne.write_evokeds(fname_evoked, evoked_list)

Thanks!
Megan

MEG Technician
The Mind Research Network
1101 Yale Blvd. NE
Albuquerque, New Mexico 87106
505-272-3304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170222/3861f005/attachment.html

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.

We could/should probably also make it give a better comment by default.

Eric

Thanks!!
I eventually poked around until I found the comment field. It would be
great if you could make it set the comment to something more useful by
default.

Thanks again,
Megan

MEG Technician
The Mind Research Network
1101 Yale Blvd. NE
Albuquerque, New Mexico 87106
505-272-3304