Skip to content

Commit

Permalink
Use lattice stub
Browse files Browse the repository at this point in the history
  • Loading branch information
utf committed Oct 26, 2020
1 parent 27a51a7 commit c8f4aa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emmet-core/emmet/stubs/__init__.py
Expand Up @@ -5,13 +5,15 @@
"""

from pymatgen.analysis.xas.spectrum import XAS
from pymatgen.core.structure import Composition, Structure
from pymatgen.core.structure import Composition, Structure, Lattice
from pymatgen.entries.computed_entries import ComputedEntry

from emmet.stubs.math import Matrix3D, Vector3D
from emmet.stubs.misc import Composition as StubComposition
from emmet.stubs.misc import ComputedEntry as StubComputedEntry
from emmet.stubs.structure import Structure as StubStructure
from emmet.stubs.structure import Lattice as StubLattice

from emmet.stubs.utils import patch_msonable, use_model

"""
Expand All @@ -20,6 +22,7 @@
in as Stubbed classes to prevent name clashing
"""
use_model(Structure, StubStructure)
use_model(Lattice, StubLattice)
use_model(Composition, StubComposition, add_monty=False)
use_model(ComputedEntry, StubComputedEntry)

Expand Down

0 comments on commit c8f4aa4

Please sign in to comment.