Skip to content

Route TDL (tree_learner) output through logging instead of print - #657

Merged
Demirrr merged 1 commit into
developfrom
refactor/tree-learner-logging
Oct 23, 2026
Merged

Demirrr merged 1 commit into
developfrom
refactor/tree-learner-logging

Conversation

@Demirrr

@Demirrr Demirrr commented Oct 23, 2026

Copy link
Copy Markdown
Member

Second of the print to logger cleanup PRs (Improvements.md §3). Stacked on #656: the base is refactor/nces-logging so the Improvements.md/CHANGELOG edits don't conflict; GitHub retargets this to develop when #656 merges.

  • learners/tree_learner.py: the 12 live print calls become logger.info (keeping their existing verbose gates).
  • Removed the three if self.verbose > 0: print("Warning: Error extracting ... features") lines, which only duplicated the logger.warning(..., exc_info=True) right above them.
  • The remaining print( matches in the file are in comments / dead string blocks (AST check: no real print calls left).
  • Improvements.md counts and CHANGELOG updated.

Local: tdl, tdl_refinement and both regression test files: 86 passed; ruff clean.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Base automatically changed from refactor/nces-logging to develop October 23, 2026 08:23
@Demirrr
Demirrr merged commit 07e27e9 into develop Oct 23, 2026
2 checks passed
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.

1 participant