materialsproject / pymatgen

Python Materials Genomics (pymatgen) is a robust materials analysis code that defines classes for structures and molecules with support for many electronic structure codes. It powers the Materials Project.
https://pymatgen.org
Other
1.52k stars 867 forks source link

lattice_type is not complete #540

Closed wangnumber14 closed 7 years ago

wangnumber14 commented 7 years ago

<When reporting bugs/issues, please supply the following information. If this is a feature request, please simply state the requested feature.>

System

Summary

When "A" or "B" in the apg_symbol, the kpath is not supplied.

Can this type of lattice type be supplied?

Example code

<Example code generating error>

Error message

<Error message>

Suggested solution (if any)

Files (if any)

<If input files are needed to reproduce the error, please provide either links (e.g., Dropbox or GDrive) for large files or simply paste the file below for small files.>

<contents of file 1>
hautierg commented 7 years ago

Our approach for high symmetry k-point follows what is proposed by Setyawan et al.: Setyawan, W.; Curtarolo, S. Comput. Mater. Sci. 2010, 49 (2), 299–312. There the face centered A and B representations are not considered. This is only a representation and those are not recommended by the crystallographic community as far as I know. I would suggest that you "standardize" the cell of your material to bring it back to a standard crystallographic representation and use that cell for your band structure (using get_primitive_standard_structure).

I will try to change the code to throw a more explicit warning or exception when the setting is A or B...