I have an issue when I run kpath.get_kpoints() on the structure of material mp-773163. I know that this problem only occurs for this material (as it works fine for all other materials in the materials project), so it must be a problem with this material. Below is code that reproduces this bug:
from pymatgen.ext.matproj import MPRester
from pymatgen.symmetry.kpath import KPathSetyawanCurtaroloMP_ID = <YOUR_ID>
with MPRester(MP_ID) as m:
structure = m.get_structure_by_material_id(“mp-773163”)
kpath = KPathSetyawanCurtarolo(structure)
kpath.get_kpoints()
The error is:
Traceback (most recent call last):
File “kpath_none_error.py”, line 16, in
kpath.get_kpoints()
File “/home/ubuntu/.local/lib/python3.8/site-packages/pymatgen/symmetry/kpath.py”, line 108, in get_kpoints
for b in self.kpath[“path”]:
TypeError: ‘NoneType’ object is not subscriptable