pydistsim.utils.npickle.read_pickle
- read_pickle(path: str, not_found_raises=True)[source]
Read object in Python pickle format. If not_found_raises is True then raise an exception if file is missing.
- Parameters:
path (str) – The path of the file to read the pickled object from.
not_found_raises (bool) – Whether to raise an exception if the file is missing. Default is True.
- Returns:
The unpickled object.
- Return type:
Any