You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the reading and writing of abacus/stru format (#793)
Refactor the codes to read and write ABACUS/STRU, and move the functions
in a single file abaucs/stru.py
Now, now using dpdata.system to read an ABACUS STRU will also return
below informations in data dict:
```
{
"masses": list of atomic masses,
"pp_files", list of pseudo potential files,
"orb_files", list of orbital files,
"dpks_descriptor": the deepks descriptor file,
}
```
And, these information can also be written to a new STRU file
automatically.
Later, I will based on this commit to fix the bug in dpgen
deepmodeling/dpgen#1711
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a dedicated module for structure file handling, enhancing
the parsing and conversion of lattice, species, and coordinate data.
- **Refactor**
- Streamlined data extraction processes for simulation and relaxation
workflows, reducing redundant operations and improving error clarity.
- Updated plugin methods to leverage the enhanced structure processing
functions for improved efficiency.
- **Tests**
- Improved test setups and cleanups, ensuring consistent handling of
structure files and robust validation of the new parsing logic.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: root <pxlxingliang>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments