Skip to content

Commit

Permalink
Merge pull request #174 from dumkar/matproj
Browse files Browse the repository at this point in the history
Adjusted matproj database downloader for new pymatgen Structure
  • Loading branch information
ktschuett authored Sep 18, 2019
2 parents f6f79a8 + e9970b2 commit 3fe0f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schnetpack/datasets/matproj.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _download(self):
)
try:
from pymatgen.ext.matproj import MPRester
from pymatgen.core import Properties
from pymatgen.core import Structure
import pymatgen as pmg
except:
raise ImportError(
Expand Down Expand Up @@ -130,7 +130,7 @@ def _download(self):

for k, q in enumerate(query):
s = q["structure"]
if type(s) is Properties:
if type(s) is Structure:
at = Atoms(
numbers=s.atomic_numbers,
positions=s.cart_coords,
Expand Down

0 comments on commit 3fe0f12

Please sign in to comment.