-
Notifications
You must be signed in to change notification settings - Fork 524
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
rename j_must_have to j_deprecated and only warn about deprecated keys #3523
Labels
Comments
njzjz
added a commit
to njzjz/deepmd-kit
that referenced
this issue
May 24, 2024
…ted keys Fix deepmodeling#3523. Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot
pushed a commit
that referenced
this issue
May 24, 2024
…ted keys (#3816) Fix #3523. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Simplified code by removing the `j_must_have` function and directly accessing dictionary keys in various test files. - Replaced `j_must_have` with direct dictionary access for improved code readability and maintenance. - **Chores** - Updated test files to directly access dictionary values, enhancing code readability and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Closed in commit 6aac9f8 |
mtaillefumier
pushed a commit
to mtaillefumier/deepmd-kit
that referenced
this issue
Sep 18, 2024
…ted keys (deepmodeling#3816) Fix deepmodeling#3523. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Simplified code by removing the `j_must_have` function and directly accessing dictionary keys in various test files. - Replaced `j_must_have` with direct dictionary access for improved code readability and maintenance. - **Chores** - Updated test files to directly access dictionary values, enhancing code readability and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe rename this to j_deprecated and only warn about deprecated keys,
if the deprecated_key argument is left empty function puppose is only custom
error since dict[key] already raises KeyError when the key is missing
Line: 184
deepmd-kit//deepmd/common.py
Lines 181 to 191 in 76371ce
The text was updated successfully, but these errors were encountered: