[Mne_analysis] mne.write_evokeds(fname, evoked)

Megan Schendel mschendel at mrn.org
Thu Feb 23 17:51:15 EST 2017
Search archives:

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


On Wed, Feb 22, 2017 at 6:31 PM, Eric Larson <larson.eric.d at gmail.com>
wrote:

> 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
>
>
> On Wed, Feb 22, 2017 at 5:19 PM, Megan Schendel <mschendel at mrn.org> wrote:
>
>> 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 <(505)%20272-3304>
>>
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170223/022f3324/attachment.html 


More information about the Mne_analysis mailing list