Skip to content

DOC: fix doctest errors in libdcd, transformations, and util#5389

Open
1307610469 wants to merge 2 commits into
MDAnalysis:developfrom
1307610469:fix-doctest-errors
Open

DOC: fix doctest errors in libdcd, transformations, and util#5389
1307610469 wants to merge 2 commits into
MDAnalysis:developfrom
1307610469:fix-doctest-errors

Conversation

@1307610469
Copy link
Copy Markdown

@1307610469 1307610469 commented May 28, 2026

  • Fix IndentationError in DCDFile docstring by adding pass statement
  • Convert np.float64 to float in transformations.py example
  • Make greedy_splitext test cross-platform compatible using os.path.sep

Contributes to #3925

Fixes #

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 / no

PR Checklist

  • Issue raised/referenced?
  • Tests updated/added?
  • Documentation updated/added?
  • package/CHANGELOG file updated?
  • Is your name in package/AUTHORS? (If it is not, add it!)
  • 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--5389.org.readthedocs.build/en/5389/

- Fix IndentationError in DCDFile docstring by adding pass statement
- Convert np.float64 to float in transformations.py example
- Make greedy_splitext test cross-platform compatible using os.path.sep

Contributes to MDAnalysis#3925
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.85%. Comparing base (523c853) to head (6d3e8e4).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5389   +/-   ##
========================================
  Coverage    93.85%   93.85%           
========================================
  Files          182      182           
  Lines        22509    22509           
  Branches      3202     3202           
========================================
  Hits         21125    21125           
  Misses         922      922           
  Partials       462      462           

☔ 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.

…and fetchers

- Add try-except to handle missing file in DCDFile docstring
- Fix indentation errors in TRRFile and XTCFile docstrings
- Fix cross-platform path issue in greedy_splitext
- Convert np.float64 to float in transformations example
- Add missing import in fetchers/PDB docstring

Contributes to MDAnalysis#3925
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