-
Notifications
You must be signed in to change notification settings - Fork 520
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: add mendeleev to dependencies; remove dpdata; remove catching ImportError #3878
Conversation
Fix deepmodeling#3743. This will give users more clear error message than `NameError`. Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
WalkthroughWalkthroughThe changes aim to simplify the dependency management and import handling for Changes
Sequence Diagram(s)No sequence diagrams are necessary as the changes are mainly around import handling and dependency management. Assessment against linked issues
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (3)
Files skipped from review due to trivial changes (1)
Files skipped from review as they are similar to previous changes (1)
Additional comments not posted (3)
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.
shall we add dpdata and mendeleev to dependencies?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #3878 +/- ##
=======================================
Coverage 82.70% 82.70%
=======================================
Files 517 517
Lines 50141 50137 -4
Branches 2984 2985 +1
=======================================
- Hits 41469 41467 -2
+ Misses 7762 7760 -2
Partials 910 910 ☔ View full report in Codecov by Sentry. |
I don't find the meaning of using dpdata - the element table has already been hard-coded in deepmd-kit/deepmd/utils/econf_embd.py Line 133 in 7ec5755
|
yes, please remove the import of dpdata. |
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
…portError (deepmodeling#3878) Fix deepmodeling#3743. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Consolidated imports and removed redundant exception handling for `dpdata` and `mendeleev`. - Updated dependencies in `pyproject.toml` to include `mendeleev` in the main section and update packages for testing and documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Fix #3743.
Summary by CodeRabbit
dpdata
andmendeleev
.pyproject.toml
to includemendeleev
in the main section and update packages for testing and documentation.