Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #288 #289

Merged
merged 3 commits into from
May 16, 2024
Merged

Fix issue #288 #289

merged 3 commits into from
May 16, 2024

Conversation

lohedges
Copy link
Contributor

This PR closes #288 by checking both the element and ambertype properties when detecting dummy atoms. This avoids a round-trip self-consistency issue when creating somd1 input from perturbable molecules created via sire.morph.create_from_pertfile, where the element property will have been replaced with the value of the end state with the largest number of protons, i.e. dummies may no longer have Element("Xx").

This PR supersedes #287.

  • I confirm that I have merged the latest version of devel into this branch before issuing this pull request (e.g. by running git pull origin devel): [y]
  • I confirm that I have permission to release this code under the GPL3 license: [y]

Suggested reviewers:

@chryswoods

Copy link
Contributor

@chryswoods chryswoods left a comment

Choose a reason for hiding this comment

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

Very subtle bug and good fix :-)

@lohedges lohedges merged commit 240e2f1 into devel May 16, 2024
3 of 5 checks passed
@lohedges lohedges deleted the fix_288 branch May 16, 2024 11:32
lohedges added a commit that referenced this pull request May 16, 2024
lohedges added a commit that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants