scale_lattice#

poscar_modify.scale_lattice(factor: ndarray, keep_cartesian: bool = False)[source]#

Scale the lattice vectors by factor [a,b,c]

Parameters:

factornp.ndarray

[A,B,C], the first lattice vector is multiplied by A, etc.

keep_cartesianbool

What cooddinates should remain constant? Cartesian or direct? Default is False