A Python library for manipulating data formats of DeePMD-kit, VASP, QE, PWmat, LAMMPS, ABACUS, and other computational chemistry/DFT codes. It provides a unified interface to read, write, convert, and process atomic simulation data including coordinates, forces, energies, and stress tensors. Current version: 1.0.1, with a stable API after the 1.0.0 release. Release cadence: approximately 1-2 months per minor/patch version.
pip install dpdataNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Read a VASP OUTCAR file, print number of atoms and first frame energy, convert to ASE Atoms.
Access sys.atom_type_map to get mapping from index to species name.
Specify set_size in the DeepmdNativeFormat or use to_deepmd_npy(set_size=...) to control splitting.
Upgrade Python to 3.8 or later.
Use set_size instead of label.
Before writing, assign sys.data['atom_mass'] = [...] or use sys.set_masses(mass_map).
Run: pip install dpdata
Use: from dpdata import System
Use fmt='vasp/outcar' when reading VASP OUTCAR files.