Skip to content

Commit 30ee0e6

Browse files
committed
More phonopy API wrangling
1 parent 40354cf commit 30ee0e6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ Change Log
44
Unreleased
55
----------
66

7+
Requirements:
8+
79
- Bump minimum supported Python version to 3.10, in line with upstream Python support. (https://devguide.python.org/versions/)
810

911
- Bump minimum phonopy version to 2.7.0 (July 2020) to cleanly replace
1012
deprecated/removed PhonopyAtoms.get_number_of_atoms()
1113

14+
Bugfixes:
15+
16+
- Handle API changes in Phonopy, Monty
17+
1218
v2.3.11
1319
-------
1420

sumo/phonon/phonopy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ def load_phonopy(
5757
num_satom = determinant(dim) * len(unitcell)
5858

5959
phonon = Phonopy(
60-
unitcell, dim, primitive_matrix=primitive_matrix, factor=factor, symprec=symprec
60+
unitcell, dim, primitive_matrix=primitive_matrix, symprec=symprec
6161
)
62+
phonon.unit_conversion_factor = factor
6263

6364
if "FORCE_CONSTANTS" in filename or ".hdf5" in filename:
6465
# if force constants exist, use these to avoid recalculating them

0 commit comments

Comments
 (0)