matcal.core.serializer_wrapper

Functions

matcal_load(filename)

Load a previously stored object.

matcal_save(filename, object_to_dump)

Store an object generated in MatCal to a file.

matcal.core.serializer_wrapper.matcal_save(filename, object_to_dump)[source]

Store an object generated in MatCal to a file. It is recommended that filenames of .joblib or .json are used. Note that using different filename extensions will call different savers which allow for storing different levels of complex objects.

Parameters:
  • filename (str) – Name of file to store object. Must have an extension of (.serialized, .json, .joblib, .pcl, .pickle)

  • object_to_dump – The object to be store.

matcal.core.serializer_wrapper.matcal_load(filename)[source]

Load a previously stored object.

Parameters:

filename (str) – Name of file to load object from. Must have an extension of (.serialized, .json, .joblib, .pcl, .pickle)