Repository navigation
feat(validate): index values are not zero-padded (TF117) - #15
Merged
Merged
Conversation
res, cohort, scale and inv are written without leading zeros, in file names and in the res and cohort keys of template_description.json. Issues on file names suggest the unpadded name. Templates older than 2.0 get a warning. Also names the 26.0.0rc2 heading in CHANGES. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oesteban
marked this pull request as ready for review
December 3, 2026 07:41
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Dec 3, 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.
Summary
New rule TF117 zero-padded-index:
res,cohort,scaleandinvvalues are written without leading zeros, in file names and in theresandcohortkeys oftemplate_description.json.Severity: error for TemplateFlow 2.0 templates, warning in legacy mode. The client keeps reading
res-0*(\d+)as an integer, so queries match either form during the migration.Also names the
26.0.0rc2heading in CHANGES.rst, which was still "Unreleased".Evidence
python -m pytest -o addopts="" --doctest-modules tfmanager: 167 passed (6 new: paddedresandscalenames, the suggestion, legacy severity,res-0/res-10not flagged, paddedresandcohort.<N>.reskeys).tfmgr validateon the current skeleton, legacy mode): 278 TF117 warnings, all onres. That is 269 file names in MNI152NLin2009cAsym, MNI152NLin6Asym, NKI, MNI152Lin, OASIS30ANTs, PNC, MNI152NLin6Sym and fsaverage, plus thereskeys of 9 descriptions (MNI152NLin2009aAsym has unpadded names but"01"keys). Nocohort,scaleorinvvalue is padded.Merge Danger
Door: two-way
Blast Radius: validation reports
Legacy templates get warnings only, so the Archive workflow (templateflow#214/#215) stays green. A 2.0 template with padded values fails validation. The renames themselves come with the migration (WP4/WP5), through
.renames.tsv.