when I run the "FEM advanced tutorial with MEG/EEG Median nerve stimulation", I follow all the steps as the tutorial say. When I come to the step "Forward Model\ MEG with DTI tensors" error occur
dipole_9648.time = 0
dipole_9649.density = sparse
dipole_9649.time = 0
dipole_9650.density = sparse
dipole_9650.time = 0
Dune reported error: Dune::Exception [findEntityImpl:/home/juan/bst-duneuro/src/duneuro/duneuro/common/edgehopping.hh:84]: coordinate is outside of the grid, or grid is not convex
status =
-1
***************************************************************************
** Error: Error during the DUNEuro computation, see logs in the command window.
***************************************************************************
@YRW
I can't download your files from here: 文件分享
It looks like we need a WeChat account, or something like that, which I don't have.
Please upload your file on a service that does not require to create any account.
dipole_9649.density = sparse
dipole_9649.time = 0
dipole_9650.density = sparse
dipole_9650.time = 0.0010032
Dune reported error: Dune::Exception [findEntityImpl:/home/juan/bst-duneuro/src/duneuro/duneuro/common/edgehopping.hh:84]: coordinate is outside of the grid, or grid is not convex
status =
-1
***************************************************************************
** Error: Error during the DUNEuro computation, see logs in the command window.
***************************************************************************
@YRW
Takfarinas is right, you haven't gone through the step of remeshing the SimNIBS mesh.
It is clearly stated in the tutorial that in case of problem with MEG and SimNIBS meshes with air cavities, you must remesh the layers.
Please follow this section step by step: https://neuroimage.usc.edu/brainstorm/Tutorials/FemMedianNerve#Remesh_with_Iso2mesh
If you have issues with iso2mesh, please post full error messages and screen captures.
But when I remesh the layers with iso2mesh, error occur
***************************************************************************
** Error: Line 398: The index at position 1 is invalid. The array index must be a positive integer or logical value
**
** Call stack:
** >process_fem_mesh.m>Compute at 398
** >process_fem_mesh.m>ComputeInteractive at 1226
** >process_fem_mesh.m at 32
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,[],GetAllFilenames(bstNodes)) at 1172
**
***************************************************************************
***************************************************************************
** Error: The FEM mesh generation failed.
** Check the Matlab command window for additional information.
**
***************************************************************************
But when I remesh the layers with iso2mesh, error occur
Are your versions of Brainstorm and Iso2mesh up-to-date? - Maybe try to update both.
I've been running this computation from your database... we're both on Win10 so I don't see why the results of Iso2mesh would be different...
What is your version of Matlab?
Are your sure your followed exactly the instructions from the tutorial?
Can you send the file "FEM 679613V (iso2mesh-2021, 5layers)" to me, thank you every much
thank you, I have download your "FEM 679613V(iso2mesh-2021)", when I used it to compute ISO MEG head model, it worked. But when I used it to compute DTI MEG head model, error occur
dipole_2987.density = sparse
dipole_2987.time = 0
Dune reported error: Dune::Exception [findEntityImpl:/home/juan/bst-duneuro/src/duneuro/duneuro/common/edgehopping.hh:84]: coordinate is outside of the grid, or grid is not convex
status =
-1
***************************************************************************
** Error: Error during the DUNEuro computation, see logs in the command window.
***************************************************************************
I strongly advise you compute this file yourself instead of using the one I posted, in order to debug all the processing chain upstream and validate the contents of your database. If you have errors in other files, it is pointless for us to try and debug the problems you report.
when I used it to compute ISO MEG head model, it worked. But when I used it to compute DTI MEG head model, error occur
It seems unlikely that DUNEuro would check for the grid in the anisotropic case, but not in the isotropic case. Please check again what you are doing.
I did try to remesh with Iso2mesh as tutorials say, but error occur
Then we need to do further debugging, please share the following information:
Zip together: the MRI file + the surface files you select in the subject anatomy folder in order to obtain this error
Upload the .zip file somewhere and post the download link here (please try using an appropriate service for that, not github, if you can find one that does not require a WeChat account...)
Post the screen capture of the window you get with the menu "Plugins > List" in Brainstorm.
Failed to save the desktop configuration
This is not coming from Brainstorm.
You have additional configuration issues on your computer.
***************************************************************************
** Error: Line 39: incorrectly use of readtetgen (line 39)
** wrong elem file
**
** Call stack:
** >readtetgen.m at 39
** >surf2mesh.m at 121
** >process_fem_mesh.m>Compute at 384
** >process_fem_mesh.m>ComputeInteractive at 1226
** >process_fem_mesh.m at 32
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,[],GetAllFilenames(bstNodes)) at 1172
**
***************************************************************************
Failed to save the desktop configuration
***************************************************************************
** Error: The FEM mesh generation failed.
** Check the Matlab command window for additional information.
**
***************************************************************************