load

negmas.helpers.load(file_name)[source]

Loads an object depending on the extension of the file given. If the filename given has no extension, DEFAULT_DUMP_EXTENSION will be used

Parameters

file_name (Union[str, PathLike, Path]) – file name

Remarks:

  • Supported formats are json, yaml

  • If None is given, the file will be created but will be empty

Return type

Any