Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -23,7 +23,7 @@ jobs:
- name: Install rdkit
run: conda create -c conda-forge -n my-rdkit-env python=${{ matrix.python-version }} rdkit openbabel;
- name: Install dependencies
run: source $CONDA/bin/activate my-rdkit-env && pip install .[amber] coverage codecov
run: source $CONDA/bin/activate my-rdkit-env && pip install .[amber,ase,pymatgen] coverage codecov
- name: Test
run: source $CONDA/bin/activate my-rdkit-env && cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
- name: Run codecov
Expand Down
2 changes: 1 addition & 1 deletion dpdata/plugins/pymatgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def to_system(self, data, **kwargs):
"""
structures = []
try:
from pymatgen import Structure
from pymatgen.core import Structure
except ModuleNotFoundError as e:
raise ImportError('No module pymatgen.Structure') from e

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
extras_require={
'ase': ['ase'],
'amber': ['parmed'],
'pymatgen': ['pymatgen'],
}
)