pydistsim.utils.npickle.write_npickle

write_npickle(obj: Any, path: str, makedir=True)

Write object in Python pickle format.

Parameters:
  • obj (Any) – The object to be pickled.

  • path (str) – The path of the file to save the pickled object.

  • makedir (bool) – Whether to create the directory if it doesn’t exist. Default is True.