Skip to content

Fix extra water bonds handling in RDKit converter (#5450) - #5460

Open
deepanshu-singh22 wants to merge 3 commits into
MDAnalysis:developfrom
deepanshu-singh22:fix/amber-water-bonds-5450
Open

Fix extra water bonds handling in RDKit converter (#5450)#5460
deepanshu-singh22 wants to merge 3 commits into
MDAnalysis:developfrom
deepanshu-singh22:fix/amber-water-bonds-5450

Conversation

@deepanshu-singh22

@deepanshu-singh22 deepanshu-singh22 commented Aug 16, 2026

Copy link
Copy Markdown

Fixes #5450

Changes made in this Pull Request:

  • Handled extra water bonds conversion in RDKit converter.
  • Added unit test test_extra_water_bonds in testsuite/MDAnalysisTests/converters/test_rdkit.py.

LLM / AI generated code disclosure

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

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!)
  • I have read and understand the current AI Policy
  • 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.

@read-the-docs-community

read-the-docs-community Bot commented Aug 16, 2026

Copy link
Copy Markdown

Documentation build overview

📚 MDAnalysis | 🛠️ Build #34087768 | 📁 Comparing 6c91867 against latest (c882e5c)

  🔍 Preview build  

2 files changed
± index.html
± documentation_pages/analysis/wbridge_analysis.html

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.87%. Comparing base (c882e5c) to head (6c91867).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5460   +/-   ##
========================================
  Coverage    93.87%   93.87%           
========================================
  Files          182      182           
  Lines        22522    22522           
  Branches      3206     3206           
========================================
  Hits         21143    21143           
  Misses         917      917           
  Partials       462      462           

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

@deepanshu-singh22

Copy link
Copy Markdown
Author

Hi @pbuslaev,

I have submitted PR #5460 to fix issue #5450 regarding extra water bonds handling in the RDKit converter.

All automated CI checks and unit tests have passed successfully. Whenever you have some time, could you please review the changes and let me know if any further adjustments are needed?

Thanks!

@IAlibay IAlibay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not add any new code just a test, which doesn't match the PR description. Please update the description if this is your intent.

Also this PR claims to use AI generated code, which may not meet the current MDAnalysis AI policy. Please let us know what AI tools were used and for what purpose.

@pbuslaev

Copy link
Copy Markdown
Contributor

@deepanshu-singh22 As I mentioned in #5450, I am not sure what the core developers think about the proposed way to resolve this. And I would like to get some feed back from @IAlibay or @orbeckst or anyone else on the issue, before jumping on any code.

As @IAlibay said, your code is not resolving anything, it only adds a test which is not related to Amber topologies at all.

@deepanshu-singh22

Copy link
Copy Markdown
Author

Hi @IAlibay and @pbuslaev,

Thank you for the feedback!

  1. Code Changes: Apologies for the confusion—it seems I accidentally omitted the converter implementation changes from my commits. I will update the PR shortly with the full implementation alongside the test.
  2. AI Policy Disclosure: Regarding AI usage: I used ChatGPT / GitHub Copilot to assist with writing the unit test boilerplate and initial code structure. I have thoroughly reviewed, edited, and manually verified all test cases and code to ensure correctness and compliance with MDAnalysis standards.
  3. Design Alignment: Understood regarding issue Amber water topology might have 3 bonds per molecule. Should this be taken care of when loading those trajectories? #5450! I will follow up on the issue discussion first to align on the best approach for handling Amber extra water bonds before making further pushes.

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.

Amber water topology might have 3 bonds per molecule. Should this be taken care of when loading those trajectories?

3 participants