Crosslinking and Energy Minimize improvements#1324
Open
CalCraven wants to merge 6 commits into
Open
Conversation
…unctions such as angle and bond distributions, as well as freud rdf
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1324 +/- ##
===========================================
+ Coverage 77.03% 77.16% +0.12%
===========================================
Files 62 64 +2
Lines 6736 7816 +1080
===========================================
+ Hits 5189 6031 +842
- Misses 1547 1785 +238 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…rate multi-site crosslinks. Adjust some of the args in relax_path, add utility functions that helps to optimally place new sites into current path
Comment on lines
+600
to
+615
| return crosslink2( | ||
| self, | ||
| crosslinker=crosslinker, | ||
| bead_name=bead_name, | ||
| backbone_name=backbone_name, | ||
| radius=radius, | ||
| excluded_bond_depth=excluded_bond_depth, | ||
| n_connection_sites=n_connection_sites, | ||
| volume_constraint=volume_constraint, | ||
| initial_point=initial_point, | ||
| seed=seed, | ||
| chunk_size=chunk_size, | ||
| run_on_gpu=run_on_gpu, | ||
| n_rotation_samples=n_rotation_samples, | ||
| overlap_radius=overlap_radius, | ||
| ) |
| from mbuild.path.path_utils import calculate_sq_distances | ||
|
|
||
|
|
||
| class CrosslinkerGeometry(Path): |
| # Center positions at origin | ||
| if len(self.coordinates) > 0: | ||
| centroid = np.mean(self.coordinates, axis=0) | ||
| self.coordinates = (self.coordinates - centroid).astype(np.float32) |
| Path | ||
| self (modified in place). | ||
| """ | ||
| from mbuild.path.crosslink import replace_sites |
| overlap_radius=None, | ||
| ): | ||
| """Add a crosslink to this path. See module-level crosslink() for details.""" | ||
| from mbuild.path.crosslink import crosslink as crosslink2 |
| import numpy as np | ||
|
|
||
| from mbuild.exceptions import PathConvergenceError | ||
| from mbuild.path.build import Path |
| if n <= 1: | ||
| return True, [0] if n == 1 else [] | ||
|
|
||
| abs_tol = bond_length * tolerance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary:
Update crosslinking path functions
Added Uutilities for:
PR Checklist