Skip to content

Commit

Permalink
update spglib symmetry dataset access and pin min version
Browse files Browse the repository at this point in the history
  • Loading branch information
esoteric-ephemera committed Aug 22, 2024
1 parent 8e99cf6 commit c135cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions matminer/featurizers/structure/bonding.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,8 @@ def get_equiv_sites(self, s, site):
sga = SpacegroupAnalyzer(s, symprec=0.01)
sg = sga.get_space_group_operations
sym_data = sga.get_symmetry_dataset()
equiv_atoms = sym_data["equivalent_atoms"]
wyckoffs = sym_data["wyckoffs"]
equiv_atoms = sym_data.equivalent_atoms
wyckoffs = sym_data.wyckoffs
sym_struct = SymmetrizedStructure(s, sg, equiv_atoms, wyckoffs)
equivs = sym_struct.find_equivalent_sites(site)
return equivs
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
requires = [
# pin NumPy version used in the build
"numpy>=1.20.1",
"setuptools>=43.0.0"
"setuptools>=43.0.0",
"spglib>=2.5.0",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit c135cf3

Please sign in to comment.