pwtools.pwscf.kpointstr

pwtools.pwscf.kpointstr(lst, base='nk')

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

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