Skip to content

v0.1.3

Choose a tag to compare

@jbonaiuto jbonaiuto released this 03 Nov 12:47
· 84 commits to main since this release

laMEG v0.1.3 — 2025-11-03

🚀 Major New Features

  • Automatic scalp surface generation
  • convert_legacy_surfaces.py and LayerSurfaceSet now automatically generate and save scalp surfaces (outer_skin.raw.gii, outer_skin.converted.gii) using MNE’s BEM functions.
  • Surfaces are correctly converted to scanner RAS coordinates and stored under <SUBJECTS_DIR>/<subject>/bem/.

Improved mesh utilities

  • Added _fix_surface_holes() — closes small topological gaps in inflated and other surfaces using VTK’s vtkFillHolesFilter.
  • Added get_layer_vertices() and get_interlayer_distance() — utilities for mapping across laminar columns and computing interlayer spacing.

Head surface handling

  • Introduced load_head_mesh() for consistent access to scalp, inner skull, and outer skull GIFTI surfaces.
  • get_distance_to_scalp() and get_radiality_to_scalp() now rely on load_head_mesh().

Visualization

  • Added verify_coregistration() in viz.py to visualize coregistration results interactively in 3D (via k3d).

🧩 Core Improvements

  • coregister() now accepts custom scalp, inner-skull, and outer-skull surface filenames.
  • Automatically repairs holes in inflated meshes after downsampling.

Post-installation

  • Streamlined logging in postinstall.py (removed redundant console prints; unified logging output).

📚 Documentation Updates

  • Added clearer post-installation step (lameg-postinstall).

🧾 Miscellaneous

Full Changelog: v0.1.2...v0.1.3