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
18 changes: 18 additions & 0 deletions .github/workflows/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: test Python import

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- run: python -m pip install .
- run: python -c 'import dpdata'

5 changes: 4 additions & 1 deletion dpdata/pymatgen/molecule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import numpy as np
from pymatgen.core import Molecule
try:
from pymatgen.core import Molecule
except ImportError:
pass
from collections import Counter
import dpdata

Expand Down