Enhance dandiset metadata error messages#1790
Merged
yarikoptic merged 1 commit intomasterfrom Feb 13, 2026
Merged
Conversation
Improve error messages in dandiset.py to provide actionable guidance: - Add hint about using 'dandi download' when dandiset.yaml is missing - Explain that metadata file may be empty or corrupted - Clarify required 'identifier' field in metadata structure These improvements help users quickly diagnose and fix common metadata issues. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1790 +/- ##
=======================================
Coverage 75.11% 75.11%
=======================================
Files 84 84
Lines 11921 11921
=======================================
Hits 8954 8954
Misses 2967 2967
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yarikoptic
approved these changes
Feb 13, 2026
Comment on lines
+46
to
+47
| f"No dandiset at {path}. " | ||
| f"The directory does not contain a '{dandiset_metadata_file}' file. " |
Contributor
There was a problem hiding this comment.
Hmm mixed convention of printing paths
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.
Improves dandiset metadata error messages with actionable hints for quick diagnosis and recovery.
Changes
dandi downloadto re-downloadExample Improvements
Before:
After:
Benefits
Files Changed
dandi/dandiset.pyTesting
Verified with full test suite: 548 passed, 0 failed.
See commit: 092b1e5d
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com