[Mne_analysis] load digitization electrodes

Teon Brooks teon.brooks at gmail.com
Tue Feb 13 14:55:59 EST 2018
Search archives:

Hey Edoardo,

There are two possible solutions for this. You can use the `read_montage`
function and construct an `.hpts` file. It's a four column space delimited
text file with the given extension. You can set the unit parameter to 'm',
'mm', 'cm'. You can then use the `set_montage` as Marijn suggested. Each
line should be as follow:

eeg Fp1 -95.0 -3. -3

The other solution would be to construct a fif file with the digitized
electrode information. For this, I don't know how to advise you.

HTH,

On Tue, Feb 13, 2018 at 1:40 AM, Edoardo Pinzuti <edoardo.pinzuti at gmail.com>
wrote:

> Dear Marijn
>
> thanks. Did not help. If I print digitization I see channels 0.   Should
> the dig montage look different?
>
> <DigMontage | 57 extras (headshape), 54 HPIs, 3 fiducials, 0 channels>
>
> 2018-02-12 23:27 GMT+01:00 Marijn van Vliet <w.m.vanvliet at gmail.com>:
>
>> Hi Edoardo,
>>
>> try: epochs.set_montage(digitization, set_dig=True)
>>
>> best,
>> Marijn.
>>
>> > On 13 Feb 2018, at 00:50, Edoardo Pinzuti <edoardo.pinzuti at gmail.com>
>> wrote:
>> >
>> > Dear everyone,
>> >
>> > I have a problem in loading the digitization of electrode in the epochs
>> objects.
>> >
>> > I created the epochs
>> > info = create_info(chan_names, sfreq, chan_types )
>> > epochs = EpochsArray(data, info, events=None, tmin=np.min(time),
>> verbose=False)
>> >
>> > digitization = read_dig_montage(hsp=positions.copy(),
>> elp=positions.copy(), point_names=labels, unit='mm')
>> > epochs.set_montage(digitization)
>> > epochs.plot_sensors()
>> >
>> > when I tried to plot:
>> > I got this error: RuntimeError: Did not find any digitization points of
>> kind FIFFV_POINT_EEG (3) in the info.
>> >
>> > How I can solve this?
>> >
>> > Thanks a lot
>> >
>> > Edoardo
>> > _______________________________________________
>> > 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.
>
>


-- 
teon <http://www.twitter.com/teon_io>, phd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180213/81b2c66d/attachment-0001.html 


More information about the Mne_analysis mailing list