soprano.collection.generate.linspace#
Generator producing structures interpolated between two extremes
Functions
|
Generator function to create multiple structures with positions interpolated linearly between two extremes. |
- soprano.collection.generate.linspace.linspaceGen(struct_0, struct_1, steps=10, periodic=False)[source]#
Generator function to create multiple structures with positions interpolated linearly between two extremes.
Args:struct_0 (ase.Atoms): the starting structurestruct_1 (ase.Atoms): the final structure. The atoms should be in thesame order as the ones in struct_0steps (Optional[int]): number of interpolated steps to produce(extremes included). Default is 10periodic (Optional[bool]): if True the interpolation will take intoaccount periodic boundaries and interpolatebetween positions in struct_0 and theclosest periodic copy of positions instruct_1. By default set to FalseReturns:linspaceGenerator (generator): an iterator object that yieldsstructures created by linearinterpolation.