DiffractionLibrary#
- class diffsims.libraries.diffraction_library.DiffractionLibrary(*args, **kwargs)[source]#
Bases:
dict
Maps crystal structure (phase) and orientation to simulated diffraction data.
- identifiers#
A list of phase identifiers referring to different atomic structures.
- Type:
list of strings/ints
- structures#
A list of diffpy.structure.Structure objects describing the atomic structure associated with each phase in the library.
- Type:
list of diffpy.structure.Structure objects.
- diffraction_generator#
Diffraction generator used to generate this library.
- Type:
Methods
Extracts a single DiffractionLibrary entry.
DiffractionLibrary.pickle_library
(filename)Saves a diffraction library in the pickle format.