[Mne_analysis] Setting the Marker channel

Senaka Amarakeerthi senakahks at gmail.com
Fri Jul 7 20:14:35 EDT 2017
Search archives:

Dear Jaakko,

Thank you for quick reply. I tried your code and it complains telling that
'Raw' object has no attribute 'get_data'.


Here is the full report of error

Opening raw data file /Users/Senaka/to_share-raw.fif...
Isotrak not found
    Range : 0 ... 55935 =      0.000 ...   436.992 secs
Ready.
Adding average EEG reference projection.
1 projection items deactivated
Reading 0 ... 55935  =      0.000 ...   436.992 secs...
Traceback (most recent call last):
  File "/Users/Senaka//test.py", line 3, in <module>
    data = raw.get_data()
AttributeError: 'Raw' object has no attribute 'get_data'


Thanks and 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 7:49 PM, Jaakko Leppakangas <jaeilepp at gmail.com>
wrote:

> 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.
>>
>>
>
> _______________________________________________
> 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/20170708/e78f3956/attachment-0001.html 


More information about the Mne_analysis mailing list