issue #2469#2586
issue #2469#2586siddharthjain1611 wants to merge 1 commit intoMDAnalysis:developfrom siddharthjain1611:develop
Conversation
| if match_atoms: | ||
|
|
||
| if match_atoms and hasattr(ag1, 'masses') and hasattr(ag2, 'masses'): |
There was a problem hiding this comment.
Line where the code was changed
There was a problem hiding this comment.
It might be better if this line stays the same and a warning is issued when no mass can be found (potentially via another except).
The format will be similar to warnings.warn(msg, category=SelectionWarning).
Please read the doc to check the types of warnings available and think of a meaningful message.
|
I felt that instead of just silently skipping the match_atom test. |
|
@xiki-tempula thank you for looking over the PR, your comments are very helpful. For reviewing gsoc-related PRs it would be super-helpful if you did a code review (instead of just posting a comment) and then select "request changes" to be extra clear what is expected of students. You can always ping another core dev for a second opinion and one of the @MDAnalysis/gsoc-mentors / core devs will have to sign off on the PR anyway. |
|
Thank you so much @xiki-tempula sir and @orbeckst sir for your suggestions, Please allow me to work on this and improve this further. |
|
What was the reason for closing the PR? |
|
sorry sir, but I thought that I had done something terribly wrong, therefore in order to correct my mistake with a new pr, I closed this. |
|
What is the number of the new PR? |
|
I've not created one though but I suppose creating an |
|
@siddharthjain1611 The idea seems sound to me. |
|
The User Guide contains a lot of information about setting up a developer environment, running tests locally and writing new tests. In short, you will need to install |
|
|
|
I've created a PR #2614. Please suggest if any changes required. |
Fixes #2469
Changes made in this Pull Request:
keeps match_atoms=True
get_matching_atoms was looking for 'mismatching' atoms by checking if anyone pair has a difference higher than tol_mass. This change keeps match_atoms=True.
PR Checklist