Skip to content

Commit

Permalink
Switch to attribute interface in spglib
Browse files Browse the repository at this point in the history
  • Loading branch information
jochym committed Dec 7, 2024
1 parent 820d976 commit 984a40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elastic/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ def get_lattice_type(cryst):

cell = (cryst.cell, cryst.get_scaled_positions(), cryst.numbers)
dataset = spg.get_symmetry_dataset(cell)
sg_name = dataset['international']
sg_nr = dataset['number']
sg_name = dataset.international
sg_nr = dataset.number

for n, l in enumerate(lattice_types):
if sg_nr < l[0]:
Expand Down

0 comments on commit 984a40f

Please sign in to comment.