Repository navigation
Brain panel: this subject's anatomy - #568
Merged
Merged
Conversation
Deploying nemar-website with
|
| Latest commit: |
15a98fe
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b574e20b.nemar-website.pages.dev |
| Branch Preview URL: | https://feat-ieeg-subject-anatomy.nemar-website.pages.dev |
This was referenced Nov 20, 2026
Merged
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.
When a dataset's NEMAR geometry index has a verified surface for the electrodes file the Brain panel shows, the Frame selector offers "This subject's anatomy" (the default for that file) and draws the subject's own cortical surface under the contacts, in the contacts' own frame, never mixed with the template. Website ADR 0034 (proposed) records the decision and resolves ADR 0033's open item.
subject-anatomy.ts: strict index validation (schema, version, hemisphere keys, content address, fit), entry match on the dataset-relative electrodes path, mesh fetch with byte count and SHA-256 checked before decoding, label and notes, and a silhouette outline computed from the subject mesh for the 2D views and SVG.<zarr host>/<dataset>/zarr/geometry/index.jsonper dataset, only while the panel is open (404 means no subject anatomy). Any failed check hides the option with one console warning.Evidence
bun run lint: clean.bun run typecheck: 0 errors, 0 warnings.bunx vitest run src/lib/ieeg-spatial: 18 files, 606 tests passed (new:subject-anatomy.test.ts, a "subject anatomy" block inpanel.test.ts, entry match, validation of bad hash, version and hemisphere key, labels per grade, one-hemisphere notes, no index request while closed, no mixing with a template row).e2e/ieeg-subject-anatomy.spec.tsagainst the local dev server (port 4410), 3 passed: on004473 with the committed fixture served forzarr.nemar.org/on004473/zarr/geometry/**; asserts no request while closed, exactly oneindex.jsonand two meshes after opening, the selected option and exact label, "Subject surfaces:" note and no "No brain surface", three outline paths in the 2D views, a 404 index leaves no option, and a dark-mode run.bun testor vitest suite outsidesrc/lib/ieeg-spatial, and a deployed site.Round 1 review fixes