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

[3] Prepare support for multiple backmapping protocols #340

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jan-stevens
Copy link
Member

This PR prepares the code to support multiple backmapping protocols with small changes. The main goal is to take out Polyply's default backmapping protocol from the 'Backmap' class and make it a standalone protocol (i.e. orient_by_bonds).

bin/polyply Outdated Show resolved Hide resolved
Copy link
Member

@fgrunewald fgrunewald left a comment

Choose a reason for hiding this comment

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

Overall good job! Three structural comments. And then we need to fix the tests

polyply/src/backmap.py Outdated Show resolved Hide resolved
polyply/src/gen_coords.py Outdated Show resolved Hide resolved
@fgrunewald fgrunewald changed the title Prepare support for multiple backmapping protocols [3] Prepare support for multiple backmapping protocols Aug 16, 2023
@fgrunewald fgrunewald added the DNA_extension Part of the DNA extension project label Aug 16, 2023
Copy link
Member

@fgrunewald fgrunewald left a comment

Choose a reason for hiding this comment

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

Minor comments for doc-strings otherwise looks good to me.

Comment on lines +41 to +44
def __init__(self, fudge_coords=0.4, bmode='automatic', *args, **kwargs):
super().__init__(*args, **kwargs)
self.fudge_coords = fudge_coords
self.bmode = bmode
Copy link
Member

Choose a reason for hiding this comment

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

add docstring for the two variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNA_extension Part of the DNA extension project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants