We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1859eb commit 584b088Copy full SHA for 584b088
.github/workflows/test_import.py
@@ -0,0 +1,18 @@
1
+name: test Python import
2
+
3
+on:
4
+ - push
5
+ - pull_request
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-python@v2
13
+ with:
14
+ python-version: '3.x'
15
+ architecture: 'x64'
16
+ - run: python -m pip install .
17
+ - run: python -c 'import dpdata'
18
dpdata/pymatgen/molecule.py
@@ -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
0 commit comments