Skip to content

Changed definition of self._groupselections_ref_coords64#5366

Closed
DhanushkaWeerakoon wants to merge 0 commit intoMDAnalysis:developfrom
DhanushkaWeerakoon:issue_2797
Closed

Changed definition of self._groupselections_ref_coords64#5366
DhanushkaWeerakoon wants to merge 0 commit intoMDAnalysis:developfrom
DhanushkaWeerakoon:issue_2797

Conversation

@DhanushkaWeerakoon
Copy link
Copy Markdown

@DhanushkaWeerakoon DhanushkaWeerakoon commented Apr 22, 2026

Changed self.reference.select_atoms(…) (line 736) to self.reference.universe.select_atoms(…)

Fixes #2797

Changes made in this Pull Request:

  • Changed self.reference.select_atoms(…) in definition of self._groupselections_ref_coords64 within rms.RMSD class (line 736) to self.reference.universe.select_atoms(…)

LLM / AI generated code disclosure

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

PR Checklist

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.84%. Comparing base (2a3d7b2) to head (03fb4b5).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5366      +/-   ##
===========================================
- Coverage    93.85%   93.84%   -0.01%     
===========================================
  Files          182      182              
  Lines        22499    22499              
  Branches      3200     3200              
===========================================
- Hits         21117    21115       -2     
- Misses         921      922       +1     
- Partials       461      462       +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.

Copy link
Copy Markdown
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Can you add a test case that demonstrably fails with the original code and passes with your changes?

Please also edit the PR title to something more descriptive in reference to the issue that you're solving. At the moment it's very confusing.

DhanushkaWeerakoon added a commit to DhanushkaWeerakoon/mdanalysis that referenced this pull request May 7, 2026
This test fails prior to application of the fix detailed in PR MDAnalysis#5366 and passes after.
This test replicates the example in "Code to reproduce the behaviour" in Issue MDAnalysis#2797.
Expected values on correct operation of function are saved in fixture correct_values_backbone_group.
DhanushkaWeerakoon added a commit to DhanushkaWeerakoon/mdanalysis that referenced this pull request May 7, 2026
Test fails prior to fix to Issue MDAnalysis#2797 (addressed in PR MDAnalysis#5366) and passes after.
Test replicates case (in "Code to reproduce behaviour") in Issue MDAnalysis#2797.
Expected values for test case are saved in fixture. correct_values_alphacarbons_group (line 197).
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.

Mismatch in groupselections for RMSD between target and reference

2 participants