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

add a public method to register new DataType in a plugin #505

Closed njzjz closed 12 months ago

njzjz commented 12 months ago

Move DataType to an independent module, so register it will be eaiser. No breaking changes are made.

codecov[bot] commented 12 months ago

Codecov Report

Patch coverage: 89.06% and project coverage change: +0.04 :tada:

Comparison is base (7531150) 82.71% compared to head (322793d) 82.75%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #505 +/- ## ========================================== + Coverage 82.71% 82.75% +0.04% ========================================== Files 70 71 +1 Lines 6404 6421 +17 ========================================== + Hits 5297 5314 +17 Misses 1107 1107 ``` | [Impacted Files](https://app.codecov.io/gh/deepmodeling/dpdata/pull/505?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling) | Coverage Δ | | |---|---|---| | [dpdata/data\_type.py](https://app.codecov.io/gh/deepmodeling/dpdata/pull/505?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling#diff-ZHBkYXRhL2RhdGFfdHlwZS5weQ==) | `88.33% <88.33%> (ø)` | | | [dpdata/system.py](https://app.codecov.io/gh/deepmodeling/dpdata/pull/505?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepmodeling#diff-ZHBkYXRhL3N5c3RlbS5weQ==) | `85.58% <100.00%> (-0.03%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/deepmodeling/dpdata/pull/505/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: Do you have feedback about the report comment? Let us know in this issue.