wulfric.kpoints.get_path_as_list#

wulfric.kpoints.get_path_as_list(path_as_string) list[source]#

Converts k=path from string to list representation.

path_as_list = [["G", "X", "Y", "S"], ["G", "Z"]]
path_as_string = "G-X-Y-S|G-Z"
Parameters:
path_as_stringstr

K-path as a single string.

Returns:
path_as_listlist of list of str

K-path as list of subpaths, where each subpath is a list of k-points.

Raises:
ValueError

If path_as_string is not str

Valueerror

If any subpath contains less than two points.

See also

K-path