deepmodeling / dpdata

Manipulating multiple atomic simulation data formats, including DeePMD-kit, VASP, LAMMPS, ABACUS, etc.
https://docs.deepmodeling.com/projects/dpdata/
GNU Lesser General Public License v3.0
191 stars 128 forks source link

replace the old data type with the same name and throw warning #541

Closed njzjz closed 10 months ago

njzjz commented 10 months ago

When a data type is unexpectedly registered twice, the behavior of some methods will be strange (for example, append).

For this reason, the old one is replaced, and a warning is thrown.

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.05% :warning:

Comparison is base (b45911a) 82.97% compared to head (d84b3de) 82.92%. Report is 1 commits behind head on devel.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #541 +/- ## ========================================== - Coverage 82.97% 82.92% -0.05% ========================================== Files 73 73 Lines 6490 6507 +17 ========================================== + Hits 5385 5396 +11 - Misses 1105 1111 +6 ``` | [Files Changed](https://app.codecov.io/gh/deepmodeling/dpdata/pull/541?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling) | Coverage Δ | | |---|---|---| | [dpdata/system.py](https://app.codecov.io/gh/deepmodeling/dpdata/pull/541?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling#diff-ZHBkYXRhL3N5c3RlbS5weQ==) | `85.79% <100.00%> (+0.14%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/deepmodeling/dpdata/pull/541/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling)

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