-
Notifications
You must be signed in to change notification settings - Fork 525
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
feat: descriptor provide get_rcut_smth and get_env_protection #3761
feat: descriptor provide get_rcut_smth and get_env_protection #3761
Conversation
WalkthroughWalkthroughThe recent updates in the Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 6
Out of diff range and nitpick comments (1)
source/tests/common/dpmodel/test_descriptor_hybrid.py (1)
Line range hint
72-99
: Add a TODO comment for implementation.+ # TODO: Implement the test logic for self-consistency checks
This method currently sets up test data but does not perform any assertions or function calls. It should have a TODO comment indicating that the test logic needs to be implemented.
def test_get_parameters( | ||
self, | ||
): | ||
rng = np.random.default_rng() |
Check notice
Code scanning / CodeQL
Unused local variable Note test
self, | ||
): | ||
rng = np.random.default_rng() | ||
nf, nloc, nnei = self.nlist.shape |
Check notice
Code scanning / CodeQL
Unused local variable Note test
self, | ||
): | ||
rng = np.random.default_rng() | ||
nf, nloc, nnei = self.nlist.shape |
Check notice
Code scanning / CodeQL
Unused local variable Note test
self, | ||
): | ||
rng = np.random.default_rng() | ||
nf, nloc, nnei = self.nlist.shape |
Check notice
Code scanning / CodeQL
Unused local variable Note test
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #3761 +/- ##
==========================================
+ Coverage 82.43% 82.44% +0.01%
==========================================
Files 517 517
Lines 49185 49264 +79
Branches 2979 2982 +3
==========================================
+ Hits 40547 40618 +71
- Misses 7727 7735 +8
Partials 911 911 ☔ View full report in Codecov by Sentry. |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Han Wang <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Han Wang <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Han Wang <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Han Wang <[email protected]>
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.
Actionable comments posted: 1
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.
Actionable comments posted: 2
Out of diff range and nitpick comments (1)
source/tests/pt/model/test_dpa2.py (1)
84-85
: Consider refining the comment regarding the adjustment ofatol
for "float64" precision.The comment "marginal GPU test cases..." could be expanded to explain why the adjustment is necessary specifically for "float64" precision, which would help maintain clarity and usefulness of the comment for future maintainers or developers.
…deling#3761) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced methods to enhance the calculation of smooth decay radius and environment matrix protection across various descriptor modules. This will improve the precision and reliability of environmental interactions in models. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Han Wang <[email protected]> Co-authored-by: Han Wang <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit