-
Notifications
You must be signed in to change notification settings - Fork 516
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
Fix: raise error for non mixed type model #3759
Fix: raise error for non mixed type model #3759
Conversation
Warning Rate Limit Exceeded@anyangml has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 25 minutes and 57 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent changes involve enhancing type checks, ensuring data immutability, and refining descriptor configurations. These updates aim to enforce type restrictions in Changes
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 (
|
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.
Actionable comments posted: 2
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #3759 +/- ##
==========================================
- Coverage 82.25% 82.25% -0.01%
==========================================
Files 513 513
Lines 47654 47666 +12
Branches 2983 2981 -2
==========================================
+ Hits 39200 39207 +7
- Misses 7543 7548 +5
Partials 911 911 ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
Co-authored-by: Han Wang <[email protected]> Signed-off-by: Anyang Peng <[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: 3
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced error handling in model initialization to ensure compatibility, now requiring all sub-models to be of mixed type. - **Refactor** - Modified code in `se_atten.py` to create a copy of `nlist` before modifying it, preserving the original `nlist` during subsequent operations. - **Tests** - Updated import statement and instantiation parameters in `test_linear_atomic_model.py` for `DescrptDPA1` class. - Altered parameters in the `descriptor` section of `test_permutation.py` for improved testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Anyang Peng <[email protected]> Co-authored-by: anyangml <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Han Wang <[email protected]>
Summary by CodeRabbit
se_atten.py
to create a copy ofnlist
before modifying it, preserving the originalnlist
during subsequent operations.test_linear_atomic_model.py
forDescrptDPA1
class.descriptor
section oftest_permutation.py
for improved testing.