Skip to content

fix: RTDC_Dict did not allow local basins - #421

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/dict-local-basins-allowed
Nov 19, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/dict-local-basins-allowed

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

RTDC_Dict defined _local_basins_allowed = True as a class attribute, but RTDCBase.__init__ sets the instance attribute self._local_basins_allowed = False, which shadows it. As a result, "file" basins were rejected with a LocalBasinForbiddenWarning for dictionary-based datasets (e.g. subclasses or instances that define basins_get_dicts). The attribute is now set in RTDC_Dict.__init__ after calling super().__init__ (the same way RTDC_HDF5 does it).

New test test_local_basins_allowed (fails without the fix).

🤖 Generated with Claude Code

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
paulmueller-agent force-pushed the fix/dict-local-basins-allowed branch from 447068a to f196d34 Compare November 19, 2026 09:19
@paulmueller
paulmueller merged commit c8b85dc into DC-analysis:main Nov 19, 2026
4 checks passed
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.01%. Comparing base (3f88aab) to head (f196d34).
⚠️ Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants