-
Notifications
You must be signed in to change notification settings - Fork 23
parse multiple epsilon values for lj/cut/soft #88
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
53e8961
parse multiple epsilon values for lj/cut/soft
Yi-FanLi e12bc0f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ddd6732
correct pair_coeff for hybrid style
Yi-FanLi 3d47f7e
fix merge conflict
Yi-FanLi 5a19c77
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4c47b34
support multiple activation values
Yi-FanLi 44c6d77
fix merge conflict
Yi-FanLi ec3544d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1532b71
support using a single sigma to set sigma for all pairs
Yi-FanLi d197d98
Merge branch 'hti_epsilon_pair' of github.com:Yi-FanLi/dpti into hti_…
Yi-FanLi 834a1f2
add an example for hti_liq of 2 atomic types
Yi-FanLi 6d1259f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
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.
The new function centralizes parameter processing nicely, but contains a formatting bug.
This new function appropriately centralizes the logic for processing Lennard-Jones parameters, making the code more maintainable. However, there's a formatting error in the string template.
In line 50, the string contains a
{p:s}placeholder, but no correspondingpvalue is provided in the.format()call. Fix it like this:📝 Committable suggestion
🧰 Tools
🪛 Ruff (0.8.2)
50-55:
.formatcall is missing argument(s) for placeholder(s): p(F524)