From 984a40f02e398cc02aa25c250b61a2490ae5e9a6 Mon Sep 17 00:00:00 2001 From: "Pawel T. Jochym" Date: Sat, 7 Dec 2024 15:03:16 +0100 Subject: [PATCH] Switch to attribute interface in spglib --- elastic/elastic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elastic/elastic.py b/elastic/elastic.py index 525cbe6..50087a2 100644 --- a/elastic/elastic.py +++ b/elastic/elastic.py @@ -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]: