[Mne_analysis] error when using mne_read_forward_solution: operands must be convertible to logical scalar
Matti Hamalainen
msh at nmr.mgh.harvard.edu
Sun Jun 10 15:04:35 EDT 2012
On Jun 10, 2012, at 9:47 PM, Alexandre Gramfort wrote:
> I also have no problem reading your fwd solution.
>
> do you have the latest mne-matlab code [1] ?
I think the problem was that that force_fixed could not be interpreted as logical value. It should be one of true/false.
- Matti
>
> Alex
>
> [1] https://github.com/mne-tools/mne-matlab
>
> On Sun, Jun 10, 2012 at 12:20 PM, Matti Hamalainen
> <msh at nmr.mgh.harvard.edu> wrote:
>>
>> On Jun 9, 2012, at 10:35 PM, Jeff Eriksen wrote:
>>
>> This is what I got at the Matlab command window:
>>
>>>> [fwd]=mne_read_forward_solution(fname,force_fixed);
>> Reading forward solution from A6_ec1_fen_ds250_ico3_bem5120_fwd.fif...
>> Reading a source space...[done]
>> Reading a source space...[done]
>> 2 source spaces read
>> Read EEG forward solution (1284 sources, 257 channels, free
>> orientations)
>> Source spaces transformed to the forward solution coordinate
>> frame
>> ??? Operands to the || and && operators must be convertible to logical
>> scalar values.
>>
>> Error in ==> mne_read_forward_solution at 246
>> if fwd.source_ori == FIFF.FIFFV_MNE_FIXED_ORI || ...
>>
>> There was no complaint when I used this forward solution in my analysis to
>> compute inverse solutions in mne_analyze.
>> How should I begin troubleshooting this?
>>
>>
>> Did you set force_fixed to either true or false. I do not have any trouble
>> reading your forward solution.
>>
>> - Matti
>>
>>
>>
>>
>> ---------
>>
>> Matti Hamalainen, Ph.D.
>> Athinoula A. Martinos Center for Biomedical Imaging
>> Massachusetts General Hospital
>>
>> msh at nmr.mgh.harvard.edu
>> mhamalainen at partners.org
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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.
>>
>
>
More information about the Mne_analysis
mailing list