-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adding Single Chain system class #192
base: main
Are you sure you want to change the base?
Conversation
StephMcCallum
commented
Feb 28, 2025
•
edited
Loading
edited
- doc strings
- add to library/systems.py
- make it work for AA atom models and atom indices (different ways to get length of polymer or mbuild compound, spicy.pdist)
- unit tests
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start! I left a few comments for changes.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #192 +/- ##
==========================================
+ Coverage 94.77% 94.90% +0.13%
==========================================
Files 26 26
Lines 1970 2023 +53
==========================================
+ Hits 1867 1920 +53
Misses 103 103 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple more comments. We just need some unit tests now.
flowermd/library/systems.py
Outdated
class SingleChainSystem(System): | ||
"""Builds a box around a single chain. | ||
|
||
Calculates the maximum distance of the chain using scipy.spatial.distance.pdist(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can expand here a little. We should say that the box lengths are chosen so that they are at least as long as the largest particle part distance. We could say that the chain is centered in the volume.
flowermd/library/systems.py
Outdated
|
||
Parameters | ||
---------- | ||
See System class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a doc string for the buffer
parameter.
for more information, see https://pre-commit.ci