Skip to content

FIX: Full resname matching for nucleic acid analysis#5365

Open
BradyAJohnston wants to merge 3 commits intoMDAnalysis:developfrom
BradyAJohnston:fix-5360
Open

FIX: Full resname matching for nucleic acid analysis#5365
BradyAJohnston wants to merge 3 commits intoMDAnalysis:developfrom
BradyAJohnston:fix-5360

Conversation

@BradyAJohnston
Copy link
Copy Markdown
Member

@BradyAJohnston BradyAJohnston commented Apr 22, 2026

Fixes #5360

I had a surface level look (searching for similar code) and couldn't find any other usage of this - so it should be the only occurrence. Tests were previously passing because of the bug and have now been fixed. Could cause issues if users were relying on this bug but still worth fixing ASAP.

Changes made in this Pull Request:

  • Resname matching was just chaged from resname[0] -> resname as put forward in the issue
  • Some additional tests added to better capture and guard against the issue

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--5365.org.readthedocs.build/en/5365/

@BradyAJohnston BradyAJohnston changed the title Fix full resname matching for nucleic acid analysis FIX: Full resname matching for nucleic acid analysis Apr 22, 2026
@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 (f6a87d6).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5365      +/-   ##
===========================================
- 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.

LGTM, thanks for the quick fix!

@orbeckst orbeckst self-assigned this Apr 23, 2026
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.

code is great but need CHANGELOG entry, especially as it has potential for code breakage

@BradyAJohnston
Copy link
Copy Markdown
Member Author

I had already added to the changelog but just hadn't pushed it from my local machine 😅

@BradyAJohnston BradyAJohnston requested a review from orbeckst April 23, 2026 08:14
@BradyAJohnston
Copy link
Copy Markdown
Member Author

I don't know if it should be 'louder' or more obvious in the changelog given it's a potentially breaking change? If you have a better way to include in feel free to just suggest / merge the chanage.

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.

Nucleic acid residues name truncated in WatsonCrickDist

2 participants