pwtools.pwscf.kpoints_str

pwtools.pwscf.kpoints_str(lst, base='nk')[source]

[3,3,3] -> “nk1=3,nk2=3,nk3=3”

Useful for QE’s phonon toolchain ph.x, q2r.x, matdyn.x