Repository navigation
MindGlide 1.2.0 — Aegis
Codename: Aegis — the shield. This release is dedicated to protecting your data: MindGlide now refuses to overwrite input scans, writes segmentations atomically, survives corrupt files without dropping the batch, and ships checksum-verified model weights.
Hardening, packaging, and automation release. Segmentation outputs are byte-identical to 1.1.0 — verified on public MNI data on GPU and CPU, for both the resampled (anisotropic) and non-resampled code paths.
Safety fixes
- Refuses to overwrite input scans:
-oresolving onto an input file (including cross-collisions in folder mode) now errors instead of silently replacing your MRI with the label map. - One corrupt file no longer kills a batch run: files with a valid header but corrupt payload are attributed and reported per file; the rest of the batch completes and the exit code reflects the failures.
- Atomic output writes: interrupted runs can no longer leave truncated
_segfiles that--resumewould treat as done. --resumeis now exact: checks for the precise expected output file (extension included), works for single files too, and can no longer be fooled by unrelated*_seg.*files.- Pinned model download: weights are fetched at an exact Hugging Face revision; the Docker image verifies them by sha256 against a digest-pinned base image and runs as non-root.
mindglide-volumes: correct volumes for 4D label images (spatial zooms only), NaN filtering, and a warning when the input doesn't look like a segmentation.
Packaging
mindglideis now a regular Python package with__version__andpython -m mindglidesupport; SPDX license metadata;scipydeclared; complete sdist (test suite included); ruff-linted.- New GitHub Actions CI: lint + tests on Python 3.9–3.13 + package build on every push, weekly end-to-end segmentation of public MNI data.
CLI polish
--sw-batch-sizerejects non-positive values; bad--model-pathfails before the heavy imports; hyphenated flags listed first in--help(underscore spellings still accepted); importingmindglideas a library no longer silences warnings in the host process.
🤖 Generated with Claude Code