Repository navigation
fix: support basins without a name - #82
Merged
paulmueller merged 1 commit intoNov 23, 2026
Merged
Conversation
The basin name is optional, but sorting the basins in `HDF5Data` compared the names directly, so a file with two basins of the same type without a name (missing or None) could not be opened (`KeyError` or `TypeError`). `copy_basins` and the job runner also required the "name" and "description" keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
paulmueller
approved these changes
Nov 23, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #82 +/- ##
=======================================
Coverage 88.15% 88.15%
=======================================
Files 63 63
Lines 4524 4524
=======================================
Hits 3988 3988
Misses 536 536 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The "name" of a basin is optional, but a few places required it:
HDF5Databasin sorting: since 0.28.3, basins of the same type are sorted by comparing their names directly. A file with two basins of the same type could not be opened if their names were missing (KeyError: 'name') orNone(TypeError: '<' not supported between instances of 'str' and 'NoneType'). A single unnamed basin was never compared, so it worked.copy_basinsandDCNumJobRunner.task_enforce_basin_strategy: both accessedbn_dict["name"]andbn_dict["description"]directly.Fix
a.get("name") or "".copy_basinsand the runner usebn_dict.get("name")andbn_dict.get("description"), which passNonetostore_basin.Tests
test_basin_without_name[...]covers two file basins with the names (None, None), ("peter", None), (missing, missing) and ("peter", missing). Each case opens the file, reads "image" from the basin and copies the basins. All 4 cases fail on main and pass here.🤖 Generated with Claude Code