Repository navigation
Add vocabulary enums for spaces, intents, manufacturers and microscopy - #307
Merged
Merged
Conversation
SpaceEnum (the NIfTI xform codes, the BIDS templates and the BIDS non-standard spaces), IntentEnum (the NIfTI intents), Manufacturer, and the OME IlluminationType and ContrastMethod. They list the known values of fields that stay free text: a value outside the list is kept as a string. The SpaceEnum table is a grid table, so the docs enable the markdown_grid_tables extension (already a docs requirement). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VmK1jLTwd2hMkvYnMWEyYw
This was referenced Oct 6, 2026
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.
Part of #233, split out of #287.
Adds five enums to
brainhops.datamodel.enums:SpaceEnum: the BIDS template spaces;IntentEnum: the 44 NIfTI intents, with their codes;Manufacturer;IlluminationType;ContrastMethod.Every member is listed in a grid table in the docstrings. To render those tables, this also enables the
markdown_grid_tablesextension inzensical.toml; the package was already a docs dependency.Nothing uses the enums yet; the metadata vocabulary does, further up the stack.
Stack
mainmainFormatDispatchermixin and small fixes, based onmain🤖 Generated with Claude Code
https://claude.ai/code/session_01VmK1jLTwd2hMkvYnMWEyYw
Generated by Claude Code