-
Notifications
You must be signed in to change notification settings - Fork 81
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 more notes about unit conversions to the hoomd functions #1062
Conversation
for more information, see https://pre-commit.ci
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.
Few formatting changes! Otherwise, this documentation is sorely needed.
mbuild/formats/hoomd_forcefield.py
Outdated
To convert the distance units from Angstrom to nm: | ||
use ref_distance = 10 (angstroms/nm) | ||
|
||
You can also use the auto_scale parameter to convert distance, energy |
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.
You might want to give an example of this as well. I'd move line 98 up above the Examples section, then make a full new:
Examples
-----------
Section with all of these individual examples. See something like this as a format.
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.
I consolidated the examples section here. I see what you're saying about the examples in that other file. Do you think I should write out a full example from imports to creating an mb.Compound, etc.. or just leave these examples specific to picking a value for the reference parameters.
Codecov ReportBase: 90.49% // Head: 78.21% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1062 +/- ##
===========================================
- Coverage 90.49% 78.21% -12.29%
===========================================
Files 61 57 -4
Lines 6157 5513 -644
===========================================
- Hits 5572 4312 -1260
- Misses 585 1201 +616
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
LGTM!
Add more notes about unit conversions to the hoomd functions (mosdef-hub#1062)
PR Summary:
This PR addresses #1057. It provides further explanation about the behind-the-scenes conversion of units, and an example of how to use the reference value parameters to convert to another unit system (mosdef units in this case).
Let me know if anything looks incorrect, or isn't clear.
PR Checklist