deepmodeling / deepmd-kit

A deep learning package for many-body potential energy representation and molecular dynamics
https://docs.deepmodeling.com/projects/deepmd/
GNU Lesser General Public License v3.0
1.43k stars 494 forks source link

breaking: deprecate `set_prefix` #3753

Closed njzjz closed 3 months ago

njzjz commented 3 months ago

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.

codecov[bot] commented 3 months ago

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 :warning:
deepmd/utils/argcheck.py 75.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.