Skip to content

MindGlide 1.2.0 — Aegis

Choose a tag to compare

@armaneshaghi armaneshaghi released this 13 Aug 09:53
· 27 commits to main since this release
63c3edf

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: -o resolving 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 _seg files that --resume would treat as done.
  • --resume is 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

  • mindglide is now a regular Python package with __version__ and python -m mindglide support; SPDX license metadata; scipy declared; 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-size rejects non-positive values; bad --model-path fails before the heavy imports; hyphenated flags listed first in --help (underscore spellings still accepted); importing mindglide as a library no longer silences warnings in the host process.

Full details in #52 and #53.

🤖 Generated with Claude Code