Repository navigation
SpectralBrain 0.0.7
SpectralBrain 0.0.7
Bug-fix release from a full audit of the library (Opus 5.5 is awesome, baby!): about 120 bugs and silent failures fixed, plus the new volume→mesh pipeline. About 170 new regression tests.
Fixed
- Spectral: the anisotropic Laplacian is now symmetric and
min_curvatureno longer returns the normal; Finsler conductivity follows the requested direction; Hamiltonian spectra keep negative eigenvalues; functional maps are full rank; Bates/SGW descriptors no longer depend on eigenvector sign; persistent Laplacian, Betti curves, NetLSD and FGSD fixed. - Core: the Laplacian cache is keyed on the method;
shape_indexstays in [-1, 1] and mean curvature is signed; degenerate faces are removed (weld_mesh());marching_cubesbinarises labels and orients faces outward;schaefer_to_yeois exact when given parcel names;set_log_levelworks. - IO: SynthStrip/FastSurfer no longer crash; segmentation runs in native space; MNI atlases require a registration; face orientation is correct for any affine; GIfTI labels are read by key.
- Statistics: eigenstrapping, rewiring and phase randomisation produce valid nulls; TFCE handles the positive and negative tails separately; FDR and correlation tolerate NaN; ComBat rewritten (
combat_apply); GP z-scores include observation noise; Bayesian models report diagnostics (SamplingWarning). - Viz: multi-view panels use explicit RAS cameras;
savefigkeeps names liket0.5; shared colour limits for comparisons.
Breaking changes
parcellate()requiresatlas_reg=for MNI-space atlases.load_groupraises on duplicate subject IDs.NormativeModelharmonised with ComBat needssite=when scoring.- Segmentation runs in native space by default (
segment_space="template"restores the old behaviour). compute_functional_mapdefaultregularizeis now 1e-8.
Results from eigenstrapping, TFCE, anisotropic descriptors, Bates/SGW, normative z-scores and edge rewiring may change — rerun them on this version.
Full changelog: see CHANGELOG.md.