Skip to content

Conversation

@IAyaanHere
Copy link
Contributor

@IAyaanHere IAyaanHere commented Jan 14, 2026

Fixes #5127

Changes made in this Pull Request:

  • Added a new test case test_missing_coords_error in test_lammps.py.
  • Verified that LAMMPS.DumpReader correctly raises a ValueError when the input file lacks coordinate columns (x, y, z).
  • Uses tmpdir to generate a temporary dummy file for the test execution.

LLM / AI generated code disclosure

LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: 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--5206.org.readthedocs.build/en/5206/

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.72%. Comparing base (9cbc8ea) to head (007ddad).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5206   +/-   ##
========================================
  Coverage    92.72%   92.72%           
========================================
  Files          180      180           
  Lines        22475    22475           
  Branches      3190     3190           
========================================
  Hits         20841    20841           
  Misses        1177     1177           
  Partials       457      457           

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

@BradyAJohnston
Copy link
Member

This seems OK - can you please run Black formatting to get the linting test to pass?

@BradyAJohnston BradyAJohnston self-assigned this Jan 14, 2026
@IAyaanHere
Copy link
Contributor Author

This seems OK - can you please run Black formatting to get the linting test to pass?

Thanks! @BradyAJohnston I've downgraded Black to the required version (v24) and applied the formatting fixes. Everything should be clean now.

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.

missing test for LAMMPS DumpReader for ValueError when missing coordinates

2 participants