Skip to content

Commit 5f92211

Browse files
committed
fixing phonon expected types
1 parent 82225b2 commit 5f92211

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_mprester.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
from pymatgen.entries.computed_entries import ComputedEntry, GibbsComputedStructureEntry
2828
from pymatgen.io.cif import CifParser
2929
from pymatgen.io.vasp import Chgcar
30-
from pymatgen.phonon.bandstructure import PhononBandStructureSymmLine
31-
from pymatgen.phonon.dos import PhononDos
30+
from emmet.core.phonon import PhononDOS, PhononBS
3231

3332
from mp_api.client import MPRester
3433
from mp_api.client.core.client import MPRestError
@@ -291,10 +290,10 @@ def test_get_ion_entries(self, mpr):
291290

292291
def test_get_phonon_data_by_material_id(self, mpr):
293292
bs = mpr.get_phonon_bandstructure_by_material_id("mp-2172")
294-
assert isinstance(bs, PhononBandStructureSymmLine)
293+
assert isinstance(bs, PhononBS)
295294

296295
dos = mpr.get_phonon_dos_by_material_id("mp-2172")
297-
assert isinstance(dos, PhononDos)
296+
assert isinstance(dos, PhononDOS)
298297

299298
def test_get_charge_density_from_material_id(self, mpr):
300299
chgcar = mpr.get_charge_density_from_material_id("mp-149")

0 commit comments

Comments
 (0)