Skip to content

Commit

Permalink
fix contact numbering for multiple electrodes (#25)
Browse files Browse the repository at this point in the history
* fix contact numbering for multiple electrodes
---------

Co-authored-by: JPPayonk <[email protected]>
  • Loading branch information
JPPayonk and JPPayonk authored Jun 3, 2024
1 parent 485ae0f commit 73a382b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ossdbs/model_geometry/model_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def _construct_geometry(self, brain, electrodes) -> netgen.occ.OCCGeometry:
else:
brain_geo = brain_geo - electrode.geometry

brain_surfaces = brain.get_surface_names()
for surface in brain_surfaces:
self._contacts.append(Contact(name=surface))
brain_surfaces = brain.get_surface_names()
for surface in brain_surfaces:
self._contacts.append(Contact(name=surface))
try:
return netgen.occ.OCCGeometry(brain_geo)
except netgen.occ.OCCException:
Expand Down

0 comments on commit 73a382b

Please sign in to comment.