Repository navigation
fix: RTDC_Dict did not allow local basins - #421
Merged
paulmueller merged 1 commit intoNov 19, 2026
Merged
paulmueller merged 1 commit into
paulmueller merged 1 commit into
Conversation
The class attribute `_local_basins_allowed = True` was shadowed by the instance attribute set to False in `RTDCBase.__init__`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
paulmueller-agent
force-pushed
the
fix/dict-local-basins-allowed
branch
from
November 19, 2026 09:19
447068a to
f196d34
Compare
paulmueller
approved these changes
Nov 19, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #421 +/- ##
=======================================
Coverage 93.01% 93.01%
=======================================
Files 124 124
Lines 9736 9736
=======================================
Hits 9056 9056
Misses 680 680 ☔ 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.
RTDC_Dictdefined_local_basins_allowed = Trueas a class attribute, butRTDCBase.__init__sets the instance attributeself._local_basins_allowed = False, which shadows it. As a result, "file" basins were rejected with aLocalBasinForbiddenWarningfor dictionary-based datasets (e.g. subclasses or instances that definebasins_get_dicts). The attribute is now set inRTDC_Dict.__init__after callingsuper().__init__(the same wayRTDC_HDF5does it).New test
test_local_basins_allowed(fails without the fix).🤖 Generated with Claude Code