Skip to content

breaking: deprecate set_prefix #3753

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 3 commits into from
May 7, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented May 6, 2024

Fix #3477.

Deprecate set_prefix in the training parameter and --set-prefix in CLI. It has been broken since several years ago, and dpdata only supports set.

Fix deepmodeling#3477.

Deprecate `set_prefix` in the training parameter and `--set-prefix` in CLI. It has been broken since several years ago, and dpdata only supports `set`.

Signed-off-by: Jinzhe Zeng <[email protected]>
@njzjz njzjz linked an issue May 6, 2024 that may be closed by this pull request
@njzjz njzjz added the breaking change Breaking changes that should notify users. label May 6, 2024
njzjz added a commit to njzjz/dpgen that referenced this pull request May 6, 2024
njzjz added a commit to njzjz/dpgen2 that referenced this pull request May 6, 2024
njzjz added a commit to njzjz/tutorials that referenced this pull request May 6, 2024
Copy link

codecov bot commented May 6, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 82.25%. Comparing base (3d87e57) to head (816432f).

Files Patch % Lines
deepmd/main.py 66.66% 4 Missing ⚠️
deepmd/utils/argcheck.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3753      +/-   ##
==========================================
- Coverage   82.26%   82.25%   -0.01%     
==========================================
  Files         513      513              
  Lines       47634    47653      +19     
  Branches     2979     2979              
==========================================
+ Hits        39186    39199      +13     
- Misses       7537     7543       +6     
  Partials      911      911              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

njzjz added 2 commits May 6, 2024 17:00
Signed-off-by: Jinzhe Zeng <[email protected]>
@njzjz njzjz requested review from iProzd and wanghan-iapcm May 6, 2024 21:20
wanghan-iapcm pushed a commit to deepmodeling/dpgen2 that referenced this pull request May 7, 2024
See:
- deepmodeling/deepmd-kit#3477
- deepmodeling/deepmd-kit#3753

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
	- Removed an unused configuration parameter from the training settings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue May 7, 2024
wanghan-iapcm added a commit to deepmodeling/dpgen that referenced this pull request May 7, 2024
See:
- deepmodeling/deepmd-kit#3477
- deepmodeling/deepmd-kit#3753

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Refactor**
- Removed the `"set_prefix": "set"` attribute across various JSON and
YAML configuration files, streamlining data handling and batch
processing setups.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Han Wang <[email protected]>
Merged via the queue into deepmodeling:devel with commit dda6bcc May 7, 2024
60 checks passed
njzjz added a commit to deepmodeling/tutorials that referenced this pull request Aug 9, 2024
mtaillefumier pushed a commit to mtaillefumier/deepmd-kit that referenced this pull request Sep 18, 2024
Fix deepmodeling#3477.

Deprecate `set_prefix` in the training parameter and `--set-prefix` in
CLI. It has been broken since several years ago, and dpdata only
supports `set`.

---------

Signed-off-by: Jinzhe Zeng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Breaking changes that should notify users. Docs Examples LAMMPS Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] set_prefix doesn't work for both TF and PT
3 participants