load_object

pylluminator.utils.load_object(filepath: str, object_type=None)

Load any object from a pickle file:

Parameters:
  • filepath (str) – full path to the object to load. The file MUST be in pickle format

  • object_type (type) – type of the object, so that the function checks that it has the right type. Default: None

Returns:

loaded object

Return type:

Any