load_DiffractionLibrary#

diffsims.libraries.diffraction_library.load_DiffractionLibrary(filename, safety=False)[source]#

Loads a previously saved diffraction library.

Parameters:
  • filename (str) – The location of the file to be loaded.

  • safety (bool) – Unpickling is risky, this variable requires you to acknowledge this. Default is False.

Returns:

Previously saved Library.

Return type:

DiffractionLibrary