Skip to content

Conversation

@Gareth-elliott
Copy link
Contributor

@Gareth-elliott Gareth-elliott commented Apr 28, 2025

Changes made in this Pull Request:

  • Updated InterRDF and InterRDF_s classes to allow backend selection
  • Updated the functions in lib that are called by the RDF classes to also pass through the argument

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!)

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

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello there first time contributor! Welcome to the MDAnalysis community! We ask that all contributors abide by our Code of Conduct and that first time contributors introduce themselves on GitHub Discussions so we can get to know you. You can learn more about participating here. Please also add yourself to package/AUTHORS as part of this PR.

@Gareth-elliott
Copy link
Contributor Author

Hi MDAnalysis maintainers
I'm not sure what tests should be added for this, could you please advise.
@hmacdope - this PR allows the RDF analysis classes to make use of distopia

@Gareth-elliott
Copy link
Contributor Author

This will also need to get merged with work happening in #4884

@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.15%. Comparing base (75b5f72) to head (a1bbda6).
⚠️ Report is 25 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5038      +/-   ##
===========================================
- Coverage    93.15%   93.15%   -0.01%     
===========================================
  Files          177      177              
  Lines        21995    22001       +6     
  Branches      3112     3114       +2     
===========================================
+ Hits         20490    20495       +5     
  Misses        1025     1025              
- Partials       480      481       +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.

@Gareth-elliott Gareth-elliott marked this pull request as ready for review April 28, 2025 06:01
@Gareth-elliott
Copy link
Contributor Author

Hi MDAnalysis maintainers - I think this is good to go now - it seems like the failing test on MacOS is timing out, and not because of this PR?

Copy link
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.

This is a great contribution as far as I can tell. I only had a quick look so this is not a comprehensive review. I'll find a reviewer for this PR.

@orbeckst orbeckst requested a review from hmacdope May 9, 2025 15:58
@orbeckst
Copy link
Member

orbeckst commented May 9, 2025

@hmacdope would you be able to look after this PR? It makes distopia more widely available across MDAnalysis.

If you don't have the bandwidth, please unassign yourself and suggest someone else from the team. Thanks!!

@orbeckst orbeckst requested a review from richardjgowers May 9, 2025 16:00
Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

Fantastic contribution @Gareth-elliott! Just one little nitpick in tests

from numpy.testing import assert_allclose


def distopia_conditional_backend():
Copy link
Member

Choose a reason for hiding this comment

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

We should import this from somewhere central

from MDAnalysisTests.datafiles import GRO_MEMPROT, XTC_MEMPROT


def distopia_conditional_backend():
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@Gareth-elliott
Copy link
Contributor Author

Thanks @orbeckst and @hmacdope! I've just updated based on your feedback, and is ready for another look 😄

@Gareth-elliott Gareth-elliott requested a review from hmacdope May 13, 2025 21:51
Copy link
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.

There's one formatting fix to do in CHANGELOG – please do it.

But I trust that you're addressing it and won't block the PR. Thanks for your great contribution.

Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

One small query

@hmacdope hmacdope merged commit 550e3ac into MDAnalysis:develop May 15, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants