Repository navigation
feat: vendor MNI152 template brain surface (IS-T1) - #551
Merged
neuromechanist merged 9 commits intoNov 18, 2026
Merged
Conversation
Deploying nemar-website with
|
| Latest commit: |
d812db7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c27b5dac.nemar-website.pages.dev |
| Branch Preview URL: | https://feat-is-t1-template.nemar-website.pages.dev |
…into feat/is-t1-template
neuromechanist
merged commit Nov 18, 2026
4392b32
into
feature/issue-537-epic-spatial
5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Card IS-T1 of the iEEG spatial view plan. Part of #537.
What changed
scripts/vendor-brain-template.py: a uv script (PEP 723, exact pins,exclude-newer) that downloads the TemplateFlowMNI152NLin2009cAsymgray and white matter probability maps and the MNILICENSE, checks each against a SHA-256 written in the script, and builds the surface (sum, 0.5 isosurface at 1 mm, cut at x = 0, largest piece per hemisphere, Taubin smoothing x10, quadric decimation to at most 15,000 vertices) inbrain-mesh v1.public/vendor/brain-templates/mni152nlin2009casym@1/:lh.mesh.bin,rh.mesh.bin,views.json(left, top, front outlines),LICENSE.txt(the MNI notice verbatim plus one line naming this surface),provenance.json,SHA256SUMS,README.md.test/brain-template-vendor.test.ts: checksum and file-set check, script hash in provenance, license verbatim, header and vertex budget, five landmark checks, winding, size budget, views, and a known-answer check that the Python writer and the TypeScript encoder produce the same bytes.No CSP or
_headerschange: the default static-asset revalidation by ETag is what the plan asks for.Gates run
bun run test test/brain-template-vendor.test.ts: 26 passed.bun run typecheck: 0 errors.bun run lint: no fixes applied.biome checkon the new test file: clean.uvx ruff check --isolated scripts/vendor-brain-template.py: all checks passed.SHA256SUMS; a third run into the committed folder matched.README.md,provenance.jsonandLICENSE.txt: prints nothing.lh.mesh.bin266,170 bytes (14,955 vertices),rh.mesh.bin266,092 bytes (14,942 vertices),views.json4,131 bytes, folder total 542,607 bytes.Review round 1 (Sonnet, project:pr-review-toolkit): dispositions
provenance.jsonrecords the resolved environment (five pinned packages and every transitive package, by walkingRequires-Dist), pinned by a test; README, provenance and test comments state the surface scope accurately (cerebrum and cerebellum tissue surface, not a pial surface); winding threshold raised to 0.78 and a signed-volume check added (positive, 0.7 to 1.1 million cubic millimeters).Not run
gh pr checks.Card: IS-T1.