Repository navigation
Document that cached results ignore changes to neighboring files - #115
Merged
Merged
Conversation
Changes to other files the function reads (e.g., BIDS sidecars) do not invalidate cached results, in stat() mode and with a custom fingerprint alike; pair_with_path keeps results separate per location but does not make them depend on neighbors. Closes #114. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014CXyw6SCZnT8aLws6zZ8RE
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #115 +/- ##
=======================================
Coverage 94.95% 94.95%
=======================================
Files 6 6
Lines 813 813
Branches 54 54
=======================================
Hits 772 772
Misses 25 25
Partials 16 16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
yarikoptic
approved these changes
Oct 5, 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.
Closes #114.
Documentation only, no behavior change:
docs/design/git-annex-content.md: new section "Other files the function reads". It says that only the first argument is fingerprinted, instat()and custom modes alike, so a change to a sidecar (e.g.sub-01_bold.jsonnext tosub-01_bold.nii.gz) does not invalidate the cache. It describes two workarounds: fold the neighbors' fingerprints into a custom fingerprint, or pass something identifying their content as extra arguments. Thepair_with_pathparagraph now says pairing is needed for neighbor-dependent results but is not sufficient.memoize_pathdocstring: a short note on the same limitation and the workarounds.annex_key_fingerprintdocstring (pair_with_path): a note that either way, only the file itself is fingerprinted.🤖 Generated with Claude Code
https://claude.ai/code/session_014CXyw6SCZnT8aLws6zZ8RE
Generated by Claude Code