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

Add method to Geometry which finds best fit vetctor through a set of coordinates. #72

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

chrisjonesBSU
Copy link
Member

@chrisjonesBSU chrisjonesBSU commented Dec 19, 2023

This PR adds a method to cmeutils.geometry which finds the best fit vector through a set of 3D coordinates. The idea here (for initially straight polymer chains at least), this vector represents the "backbone" of the chain. This is useful for performing translations on polymers built using the polymer builder in mbuild or loaded from SMILES. Usually, these compounds don't have a simple initial alignment. If we know the backbone vector, then we can use the mbuild coordinate transformation methods on the whole chain.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (49287fa) 96.11% compared to head (9cff1f1) 96.01%.
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
- Coverage   96.11%   96.01%   -0.11%     
==========================================
  Files           8        8              
  Lines         670      677       +7     
==========================================
+ Hits          644      650       +6     
- Misses         26       27       +1     
Files Coverage Δ
cmeutils/geometry.py 96.92% <85.71%> (-1.36%) ⬇️

Copy link
Contributor

@marjanalbooyeh marjanalbooyeh 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!

@marjanalbooyeh marjanalbooyeh merged commit 70251d6 into cmelab:master Dec 19, 2023
1 of 4 checks passed
@chrisjonesBSU chrisjonesBSU deleted the backbone_vector branch December 19, 2023 19:56
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.

2 participants