Unverified Commit 5b088f12 authored by Samyak Jain's avatar Samyak Jain Committed by GitHub
Browse files

fixing pymatgen import errors and docstring

changed pymatgen to pymatgen.core to fix sub-classes import error
parent 9664aeab
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ class LCNNFeaturizer(MaterialStructureFeaturizer):
  Examples
  --------
  >>> import deepchem as dc
  >>> from pymatgen import Structure
  >>> from pymatgen.core import Structure
  >>> import numpy as np
  >>> PRIMITIVE_CELL = {
  ...   "lattice": [[2.818528, 0.0, 0.0],
@@ -147,7 +147,7 @@ class LCNNFeaturizer(MaterialStructureFeaturizer):
      used down to 2 digits.
    """
    try:
      from pymatgen import Structure
      from pymatgen.core import Structure
    except:
      raise ImportError("This class requires pymatgen to be installed.")

@@ -626,7 +626,7 @@ def _get_SiteEnvironments(struct: PymatgenStructure,
    list of local_env class
  """
  try:
    from pymatgen import Molecule
    from pymatgen.core import Molecule
    from pymatgen.symmetry.analyzer import PointGroupAnalyzer
  except:
    raise ImportError("This class requires pymatgen to be installed.")