Skip to content

refactor: reorganize directory structure#1

Open
newtontech wants to merge 2 commits intomasterfrom
fix/issue-934
Open

refactor: reorganize directory structure#1
newtontech wants to merge 2 commits intomasterfrom
fix/issue-934

Conversation

@newtontech
Copy link
Owner

This PR reorganizes the directory structure by moving all format directories into a formats/ subdirectory.

Changes

  • Created dpdata/formats/ directory
  • Moved all format directories to dpdata/formats/:
    • abacus, amber, cp2k, deepmd, dftbplus, fhi_aims
    • gaussian, gromacs, lammps, lmdb, md, openmx
    • orca, psi4, pwmat, pymatgen, qe, rdkit
    • siesta, vasp, xyz
  • Updated all import statements throughout the codebase
  • Updated relative imports in format modules (from .. to from ...)
  • Updated dpdata/__init__.py to import from new locations
  • Updated tests for new import paths

Notes

  • The plugins directory remains at the root level as requested
  • All existing tests pass with the new structure

Closes deepmodeling#934

OpenClaw Bot and others added 2 commits February 28, 2026 05:10
Move all format directories (abacus, amber, cp2k, deepmd, dftbplus,
fhi_aims, gaussian, gromacs, lammps, lmdb, md, openmx, orca, psi4,
pwmat, pymatgen, qe, rdkit, siesta, vasp, xyz) into a new formats/
subdirectory.

This addresses issue deepmodeling#934.

Changes:
- Created dpdata/formats/ directory
- Moved all format directories to dpdata/formats/
- Updated all import statements throughout the codebase
- Updated relative imports in format modules (from .. to from ...)
- Updated dpdata/__init__.py to import from new locations
- Updated tests/context.py for new import paths

The plugins directory remains at the root level as requested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Reorganize the directory structure

1 participant