Skip to content

Commit

Permalink
Added support for structures that are not periodic in all three spati…
Browse files Browse the repository at this point in the history
…al dimensions.
  • Loading branch information
JPBergsma committed Aug 26, 2022
1 parent e7de5f4 commit c50d8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimade/adapters/structures/pymatgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


try:
from pymatgen.core import Structure, Molecule, Composition
from pymatgen.core import Structure, Molecule, Composition, Lattice

except (ImportError, ModuleNotFoundError):
from warnings import warn
Expand Down Expand Up @@ -76,7 +76,7 @@ def _get_structure(optimade_structure: OptimadeStructure) -> Structure:
attributes = optimade_structure.attributes

return Structure(
lattice=attributes.lattice_vectors,
lattice=Lattice(attributes.lattice_vectors, attributes.dimension_types),
species=_pymatgen_species(
nsites=attributes.nsites,
species=attributes.species,
Expand Down

0 comments on commit c50d8b3

Please sign in to comment.