Skip to content

standardize logging.getLogger() to use __name__ (Issue #5369)#5376

Open
Jatin-Khiyani wants to merge 1 commit intoMDAnalysis:developfrom
Jatin-Khiyani:issue-5369
Open

standardize logging.getLogger() to use __name__ (Issue #5369)#5376
Jatin-Khiyani wants to merge 1 commit intoMDAnalysis:developfrom
Jatin-Khiyani:issue-5369

Conversation

@Jatin-Khiyani
Copy link
Copy Markdown

@Jatin-Khiyani Jatin-Khiyani commented May 5, 2026

Fixes #5369

Changes made in this Pull Request

LLM / AI generated code disclosure

LLMs or other AI-powered tools (beyond simple IDE use cases) were used
in this contribution: yes

Used to understand the codebase and the existing logging patterns.
All code changes were made manually following the guidance in the issue.

PR Checklist

  • Issue raised/referenced?
  • Tests updated/added?
  • Documentation updated/added?
  • package/CHANGELOG file updated?
  • Is your name in package/AUTHORS?
  • LLM/AI disclosure was updated.

Developers Certificate of Origin

I certify that I can submit this code contribution as described in the
Developer Certificate of Origin,
under the MDAnalysis LICENSE.


📚 Documentation preview 📚: https://mdanalysis--5376.org.readthedocs.build/en/5376/

Replace hardcoded logger name strings with __name__ across
analysis, coordinates, topology, converters, core and guesser
modules.

Some modules had mismatched names (e.g. coordinates/TRJ.py used
"AMBER", coordinates/PDB.py had typo "PBD") — these are now
corrected as a side effect of this change.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.85%. Comparing base (9358d7a) to head (3cd5b89).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5376   +/-   ##
========================================
  Coverage    93.85%   93.85%           
========================================
  Files          182      182           
  Lines        22505    22505           
  Branches      3200     3200           
========================================
+ Hits         21121    21122    +1     
  Misses         922      922           
+ Partials       462      461    -1     

☔ View full report in Codecov by Sentry.
📢 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.

logging.getLogger() should follow a standardized syntax.

1 participant