Error using simulations of volume scouts - bug?

Hi Francois,

I have a mixed MNE model (cortex = surface, subcortical = volume). I am able to successfully simulate recordings from my surface scouts, but the volume scouts give the following error:

Error using *
Inner matrix dimensions must agree.
Error in bst_simulation (line 164)
F(:,iTime) = HeadModelMat.Gain(:,iSourceRows) * ResultsValues;

Error in panel_scout>ForwardModelForScout (line 3362)
bst_simulation(ResultsFile, iVertices, strScouts);

Is this a bug or is there a special procedure for them?

-Emily

Hi Emily,

I fixed this bug, the update is online.
There might be other problems around, always double-check your results…

Francois

Thank you!

Hi Francois,

I just updated and am now not able to simulate from a cortical surface scout in a mixed model. Is this a quick fix?

BST> Simulation: Using head model file "S11CC_copy/@intra/headmodel_mix_os_meg.mat"
Error using *
Inner matrix dimensions must agree.
Error in bst_simulation (line 168 )
F(:,iTime) = HeadModelMat.Gain(:,iSourceRows) * ResultsValues;

Error in panel_scout>ForwardModelForScout (line 3383)
bst_simulation(ResultsFile, iVertices, strScouts, isVolumeAtlas);

Hi Emily,

Aren’t you trying to run the simulation using the surface scout instead of the corresponding volume scout?
I added a more readable error message in this case.

Cheers,
Francois

Hi Francois,

No, the volume scouts are working now but I'd also like to simulate some surface scouts on the surface part of my model and they give this error.

Here's a screen capture, maybe you can see what's going on?

Cheers,

Emily


Hi Emily,

I’m sorry, this is one more serious bug that you spotted here… The indices were not sorted correctly in bst_simulation when using only a few scouts and a mixed head model.
It’s fixed now. But I’m not sure the results you got before were correct, maybe they were working by chance. My guess would be that they would be correct in some structures and wrong in some others, depending on the order they are saved in the cortex file.
I would recommend you re-run a few of them and check if the results are changing.

Thank you for your patience…
Francois

Hi Francois,

No worries. I actually have only played with it a bit and didn’t get as far as results being correct or not, so will redo.

Thanks again for the quick fix,

Emily