get_library_entry#

DiffractionLibrary.get_library_entry(phase=None, angle=None)[source]#

Extracts a single DiffractionLibrary entry.

Parameters:
  • phase (str) – Key for the phase of interest. If unspecified the choice is random.

  • angle (tuple) – The orientation of interest as a tuple of Euler angles following the Bunge convention [z, x, z] in degrees. If unspecified the choise is random (the first hit).

Returns:

library_entries – Dictionary containing the simulation associated with the specified phase and orientation with associated properties.

Return type:

dict