StructureLibrary#
- class diffsims.libraries.structure_library.StructureLibrary(identifiers, structures, orientations)[source]#
Bases:
objectA dictionary containing all the structures and their associated rotations in the .struct_lib attribute.
- Attributes:
- identifiers
listofstrings/ints A list of phase identifiers referring to different atomic structures.
- structures
listofdiffpy.structure.Structureobjects. A list of diffpy.structure.Structure objects describing the atomic structure associated with each phase in the library.
- orientations
list A list over identifiers of lists of euler angles (as tuples) in the rzxz convention and in degrees.
- identifiers
Methods
Creates a structure library from "manual" orientation lists
StructureLibrary.get_library_size([to_print])Returns the the total number of orientations in the current StructureLibrary object.