Unable to display average sources

Hi,

I have downloaded the last version of brainstorm and I’m now unable to display sources when they are subtractions or averages of different source files.

Error :
line 83 : in_bst_data
Unable to read file …

Thanks for your help,

Mélanie

Bonjour Melanie,

Can you post the full error message here?
Can you send one example of files you cannot read anymore?
(upload it somewhere and send me the link in a separate email)

Thanks
Francois

Hi François,

Here is the full error message :
Error: Line 83: in_bst_data (line 83)
** Cannot load recordings file: “E:\Arithm\data\sources\brainstorm_db\ArithmMEG\data”.
** load
** Unable to read file ‘E:\Arithm\data\sources\brainstorm_db\ArithmMEG\data’: input cannot be a directory.
**
** Call stack:
** >in_bst_data.m at 83
** >in_bst_results.m at 280
** >bst_memory.m>LoadResultsMatrix at 997
** >bst_call.m at 28
** >macro_methodcall.m at 39
** >bst_memory.m at 71
** >view_surface_data.m at 142
** >tree_callbacks.m at 254
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 103
**

Here is one example of the source file I can’t display (subtraction between 2 conditions, I have the same error message for source averages):

Path: E:\Arithm\data\sources\brainstorm_db\ArithmMEG\data
Name: Subject31/Sleep_MEG_Mlt_1-Sleep_MEG_Mlt_0/results_150310_2224.mat

|
|- Atlas: []
|- ChannelFlag: [411x1 double]
|- Comment: ‘dSPM: MEG ALL(Full,Loose) - dSPM: MEG ALL(Full,Loose)’
|- DataFile: []
|- Function: ‘dspm’
|- GoodChannel: [1x306 double]
|- GridAtlas: []
|- GridLoc: []
|- GridOrient: []
|- HeadModelFile: ‘Subject31/Sleep_MEG_Mlt_0/headmodel_surf_os_meg.mat’
|- HeadModelType: ‘surface’
|- History: {6x3 cell}
|- ImageGridAmp: [45006x513 double]
|- ImagingKernel: []
|- Options:
| |- InverseMethod: ‘dspm’
| |- DataTypes: {‘MEG GRAD’, ‘MEG MAG’}
| |- Comment: ‘dSPM: MEG ALL(Full,Loose)’
| |- DisplayMessages: 0
| |- ComputeKernel: 0
| |- SourceOrient: {‘loose’}
| |- loose: 0.2
| |- SNR: 3
| |- pca: 1
| |- diagnoise: 0
| |- regnoise: 1
| |- magreg: 0.1
| |- gradreg: 0.1
| |- eegreg: 0.1
| |- depth: 1
| |- weightexp: 0.8
| |- weightlimit: 10
| |- NoiseCov: [306x306 double]
| |- ChannelTypes: {1x306 cell}
| |- ecogreg: 0.1
| |- seegreg: 0.1
| |- fMRI: []
| |- fMRIthresh: []
| |- fMRIoff: 0.1
|- SurfaceFile: ‘Subject31/tess_cortex_white_low.mat’
|- Time: [1x513 double]
|- Whitener: [71x306 double]
|- nComponents: 3
|- ColormapType: ‘stat2’
|- Component: []
|- OPTIONS: []
|- SourceLoc: []
|- ZScore: []
|- nAvg: 1

Thanks a lot,
Mélanie

PS : the space in ‘dat a’ in the path does not appear in brainstorm or matlab, it should be an error when pasting

Ok, bug identified and fixed.
It came from a modification for fixing the dSPM values added late last week.
You can update Brainstorm and try again.

Thanks for reporting the problem
Francois

Perfect.

Thank you very much,

Mélanie