bast / tms-location

Code to visualize and locate points for transcranial magnetic stimulation (TMS).
GNU Affero General Public License v3.0
0 stars 0 forks source link

Error running TMS location #4

Closed peraslaksen closed 3 months ago

peraslaksen commented 3 months ago

per@per-HP-EliteBook-850-G1:~/bast/tms-location-main$ ./tms-location.sif /home/per/bast/out Traceback (most recent call last): File "/software/app.py", line 101, in solver = create_solver(points, vertices) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/geodesic.py", line 8, in create_solver return pp3d.EdgeFlipGeodesicSolver(vertices, faces) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/venv/lib/python3.11/site-packages/potpourri3d/mesh.py", line 64, in init self.bound_solver = pp3db.EdgeFlipGeodesicsManager(V, F) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: GC_SAFETY_ASSERT FAILURE from /project/deps/geometry-central/src/surface/manifold_surface_mesh.cpp:109 - duplicate edge in list 19500 -- 9443

bast commented 3 months ago

The meshes might have been generated by an older version of https://github.com/bast/MRI-extract-surfaces/. But if not, then this is a real problem that I know how to fix in the pre-processing step (but I thought I fixed this already).

I will add version info to the mesh folder so that we always know which version generated them.

bast commented 3 months ago

I will close this one but let's reopen if the issue is still here. Now the mesh directory also contains version information so then I can more easily correlate it with code changes.