[Mne_analysis] Setting the Marker channel

Jaakko Leppakangas jaeilepp at gmail.com
Fri Jul 7 10:19:46 EDT 2017
Search archives:

Hi,
it seems that the stim channel is assigned as EEG for some reason (probably
a mistake in the acquisition). Also the values on the stim channel are
micro scale causing the event finding to fail. Here's a short script for
fixing raw object.

import mne
raw = mne.io.read_raw_fif('to_share-raw.fif', preload=True)
data = raw.get_data()
data[14] *= 1000000
raw = mne.io.RawArray(data, raw.info)
raw.set_channel_types({'STI 014': 'stim'})

-Jaakko


On Fri, Jul 7, 2017 at 3:50 PM, Senaka Amarakeerthi <senakahks at gmail.com>
wrote:

> Dear Alex,
>
> Please find the to_share-raw.fif file by accessing following link.
>
> https://www.dropbox.com/s/58ji93q7xj6nett/to_share-raw.fif?dl=0
>
> Best regards,
>
> Senaka
>
>
>
>
>
> <https://mailtrack.io/> Sent with Mailtrack
> <https://mailtrack.io/install?source=signature&lang=en&referral=senakahks@gmail.com&idSignature=22>
>
> On Fri, Jul 7, 2017 at 12:10 PM, Alexandre Gramfort <
> alexandre.gramfort at telecom-paristech.fr> wrote:
>
>> that's indeed unexpected.
>>
>> can you share the file?
>>
>> data.save('to_share-raw.fif')
>>
>> thx
>> Alex
>>
>> _______________________________________________
>> 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/20170707/12284149/attachment.html 


More information about the Mne_analysis mailing list