soprano.collection.generate.transform#
Generator producing structures by repeatedly applying a transform
Functions
|
Generator function to create multiple structures with positions interpolated linearly between two extremes. |
- soprano.collection.generate.transform.transformGen(struct_0, transform, steps=10)[source]#
Generator function to create multiple structures with positions interpolated linearly between two extremes.
Args:struct_0 (ase.Atoms): the starting structuretransform (function): the transform to apply on the given structure.Must accept and return a structure as onlyarguments. Instances of all transforms from thesoprano.properties.transform module satisfythese conditions.steps (Optional[int]): number of times to apply the transform.Default is 10Returns:linspaceGenerator (generator): an iterator object that yieldsstructures created by linearinterpolation.