Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
af6b72b
Merge master into devel (#465)
amcadmus May 4, 2023
0ccc570
fix RTD builds (#468)
njzjz May 10, 2023
63904ed
fix bug in reading cp2k/output of cp2k v9.1 (compatible with old ver)…
ChiahsinChu May 11, 2023
c5b96d8
[pre-commit.ci] pre-commit autoupdate (#467)
pre-commit-ci[bot] May 11, 2023
0d2b823
deepmd/hdf5: handle empty systems and files (#469)
njzjz May 15, 2023
939fe6f
[pre-commit.ci] pre-commit autoupdate (#470)
pre-commit-ci[bot] May 17, 2023
bc72db3
keep atom types when using DP models (#471)
njzjz May 19, 2023
e31b42e
allow custom data types for deepmd format (#476)
njzjz May 24, 2023
7b67af0
[pre-commit.ci] pre-commit autoupdate (#474)
pre-commit-ci[bot] May 24, 2023
1b9daf4
fix `set_size` in `to_deepmd_npy_mixed` func (#477)
iProzd May 25, 2023
ded4354
fix: writing abacus stru. (#478)
starinthesky72 May 29, 2023
5bb84c9
[pre-commit.ci] pre-commit autoupdate (#479)
pre-commit-ci[bot] May 30, 2023
f83c5b0
fix customized data shape in deepmd/hdf5 (#481)
njzjz Jun 8, 2023
ec232f8
[pre-commit.ci] pre-commit autoupdate (#482)
pre-commit-ci[bot] Jun 13, 2023
c333c19
Use stable sorting algorithms (#487)
njzjz Jun 22, 2023
3931dfc
avoid modifying appended system (#483)
njzjz Jun 22, 2023
c6d9611
[pre-commit.ci] pre-commit autoupdate (#485)
pre-commit-ci[bot] Jun 22, 2023
5242c1b
[pre-commit.ci] pre-commit autoupdate (#488)
pre-commit-ci[bot] Jun 28, 2023
ee6f38b
docs: add badges to README (#490)
njzjz Jun 28, 2023
f1b269a
[pre-commit.ci] pre-commit autoupdate (#493)
pre-commit-ci[bot] Jul 5, 2023
119fb45
[pre-commit.ci] pre-commit autoupdate (#494)
pre-commit-ci[bot] Jul 11, 2023
7bb6392
pin pymatgen to 2023.7.11 (#501)
njzjz Jul 20, 2023
a091a59
Fix: bug in reading abacus md files (#496)
YuLiu98 Jul 20, 2023
be669c8
[pre-commit.ci] pre-commit autoupdate (#497)
pre-commit-ci[bot] Jul 20, 2023
7531150
Revert "pin pymatgen to 2023.7.11" (#504)
njzjz Jul 24, 2023
b61144f
add a public method to register new DataType in a plugin (#505)
njzjz Jul 25, 2023
9ef8daf
[pre-commit.ci] pre-commit autoupdate (#506)
pre-commit-ci[bot] Jul 25, 2023
47619b7
support `-1` shape in DataType (#510)
njzjz Jul 26, 2023
5b57ac4
docs: add format docs (#516)
njzjz Aug 1, 2023
452a0e5
new feature DFTB+ (#511)
ruio248 Aug 5, 2023
2d8e7f2
Fix issue #517 (#520)
wanghan-iapcm Aug 7, 2023
3815b4e
[pre-commit.ci] pre-commit autoupdate (#521)
pre-commit-ci[bot] Aug 10, 2023
3da4651
add extra lines for code blocks in docstring (#523)
njzjz Aug 13, 2023
40d593b
Update system.py (#524)
ZhouXY-PKU Aug 16, 2023
666d199
[pre-commit.ci] pre-commit autoupdate (#525)
pre-commit-ci[bot] Aug 16, 2023
5db6410
Delete requirements.txt (#527)
njzjz Aug 21, 2023
72d5626
[pre-commit.ci] pre-commit autoupdate (#528)
pre-commit-ci[bot] Aug 23, 2023
e239d0b
[pre-commit.ci] pre-commit autoupdate (#531)
pre-commit-ci[bot] Aug 31, 2023
6ed3c44
add a public API to register data types dynamically (#532)
njzjz Sep 2, 2023
002e073
[pre-commit.ci] pre-commit autoupdate (#534)
pre-commit-ci[bot] Sep 6, 2023
ec7985b
fix cp2k 2023 output (#533)
link89 Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install rdkit
run: python -m pip install rdkit openbabel-wheel
- name: Install dependencies
run: python -m pip install .[amber,ase,pymatgen] coverage
run: python -m pip install .[amber,ase,pymatgen] coverage ./tests/plugin
- name: Test
run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
- name: Run codecov
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ _version.py
__pycache__
docs/_build
docs/formats.csv
docs/drivers.csv
docs/minimizers.csv
docs/api/
docs/formats/
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ repos:
- id: check-toml
# Python
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.263
rev: v0.0.287
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -35,7 +35,7 @@ repos:
args: ["--write"]
# Python inside docs
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
rev: 1.16.0
hooks:
- id: blacken-docs
ci:
Expand Down
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"
sphinx:
configuration: docs/conf.py
formats: all
python:
install:
- requirements: docs/requirements.txt
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# dpdata

[![conda-forge](https://img.shields.io/conda/dn/conda-forge/dpdata?color=red&label=conda-forge&logo=conda-forge)](https://anaconda.org/conda-forge/dpdata)
[![pip install](https://img.shields.io/pypi/dm/dpdata?label=pip%20install&logo=pypi)](https://pypi.org/project/dpdata)
[![Documentation Status](https://readthedocs.org/projects/dpdata/badge/)](https://dpdata.readthedocs.io/)

**dpdata** is a python package for manipulating data formats of software in computational science, including DeePMD-kit, VASP, LAMMPS, GROMACS, Gaussian.
dpdata only works with python 3.7 or above.

Expand Down Expand Up @@ -82,11 +88,12 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
| Amber | multi | True | True | LabeledSystem | 'amber/md' |
| Amber/sqm | sqm.out | False | False | System | 'sqm/out' |
| Gromacs | gro | True | False | System | 'gromacs/gro' |
| ABACUS | STRU | False | False | System | 'abacus/stru' |
| ABACUS | STRU | False | False | System | 'abacus/stru' |
| ABACUS | STRU | False | True | LabeledSystem | 'abacus/scf' |
| ABACUS | cif | True | True | LabeledSystem | 'abacus/md' |
| ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
| ase | structure | True | True | MultiSystems | 'ase/structure' |
| DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |


The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
Expand Down
7 changes: 7 additions & 0 deletions docs/formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ dpdata supports the following formats:
.. csv-table:: Supported Formats
:file: formats.csv
:header-rows: 1


.. toctree::
:maxdepth: 1
:glob:

formats/*
Loading