[Mne_analysis] compute_source_psd_epochs 'noisenorm' error
Rockhill, Alexander P.
AROCKHILL at mgh.harvard.edu
Thu Sep 20 09:34:31 EDT 2018
I figured it out... it was the prepared = True keyword argument. I hadn't prepared the inverse. It's always the simplest things... thanks for all the help.
Alex
Translational NeuroEngineering Laboratory
Division of Neurotherapeutics, Department of Psychiatry
Massachusetts General Hospital, Martinos Center
149 13th St Charlestown #2301, Boston, MA 02129
________________________________________
From: Sheraz Khan, PhD [sheraz at nmr.mgh.harvard.edu]
Sent: Wednesday, September 19, 2018 4:59 PM
To: Discussion and support forum for the users of MNE Software
Cc: Rockhill, Alexander P.
Subject: Re: [Mne_analysis] compute_source_psd_epochs 'noisenorm' error
Hi Alex,
Please feel free to pass by my office, if you want to debug it together.
Thanks
Sheraz
> Hi Alex,
>
> I just pulled the most recent development version of MNE and the error
> is still occurring. I was originally using python 2.7 but took this
> impetus to move to python 3.6.5. The MNE version is listed at 0.16.2.
> Neither python version or the latest pull worked unfortunately, and I
> am still getting the same error.
>
> Thanks,
>
> Alex
>
> Translational NeuroEngineering Laboratory
> Division of Neurotherapeutics, Department of Psychiatry
> Massachusetts General Hospital, Martinos Center
> 149 13th St Charlestown #2301, Boston, MA 02129
>
> ________________________________________
> From: mne_analysis-bounces at nmr.mgh.harvard.edu
> [mne_analysis-bounces at nmr.mgh.harvard.edu] on behalf of Alexandre Gramfort
> [alexandre.gramfort at inria.fr]
> Sent: Wednesday, September 19, 2018 5:31 AM
> To: Discussion and support forum for the users of MNE Software
> Subject: Re: [Mne_analysis] compute_source_psd_epochs 'noisenorm' error
>
> External Email - Use Caution
>
> HI Alex,
>
> can you check if this error is still present with current master branch?
>
> do you only see it when using "MNE" method?
>
> Alex
>
> On Tue, Sep 18, 2018 at 11:30 PM Rockhill, Alexander P.
> <AROCKHILL at mgh.harvard.edu> wrote:
>>
>> Hi all,
>>
>> When running compute_psd_epochs I get the following error:
>>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File
>> "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/minimum_norm/time_frequency.py",
>> line 536, in _compute_source_psd_epochs
>> prepared=prepared, method_params=method_params, verbose=verbose)
>> File
>> "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/minimum_norm/time_frequency.py",
>> line 46, in _prepare_source_params
>> K, noise_norm, vertno, _ = _assemble_kernel(inv, label, method,
>> pick_ori)
>> File "<string>", line 2, in _assemble_kernel
>> File
>> "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/utils.py",
>> line 729, in verbose
>> return function(*args, **kwargs)
>> File
>> "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/minimum_norm/inverse.py",
>> line 679, in _assemble_kernel
>> noise_norm = inv['noisenorm'][:, None]
>> KeyError: 'noisenorm'
>>
>> My inverse worked to generate the stc so I'm not sure what is going on.
>> Any help would be appreciated.
>>
>> Thanks,
>>
>> Alex
>>
>> Translational NeuroEngineering Laboratory
>> Division of Neurotherapeutics, Department of Psychiatry
>> Massachusetts General Hospital, Martinos Center
>> 149 13th St Charlestown #2301, Boston, MA 02129
>> _______________________________________________
>> 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
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
>
-------------------------
Sheraz Khan, M.Eng, Ph.D.
Instructor in Radiology
Athinoula A. Martinos Center for Biomedical Imaging
Massachusetts General Hospital
Harvard Medical School
McGovern Institute for Brain Research
Massachusetts Institute of Technology
Tel: +1 617-643-5634
Fax: +1 617-948-5966
Email: sheraz at nmr.mgh.harvard.edu
sheraz at mit.edu
Web: http://sheraz.mit.edu
More information about the Mne_analysis
mailing list