from_dict()

audobject.from_dict(d, root=None, *, auto_install=False, override_args=None, **kwargs)[source]

Create object from dictionary.

Parameters
  • d (Mapping[str, object]) – dictionary representing the object

  • root (Optional[str]) – if dictionary was read from a file, set to source directory

  • auto_install (bool) – install missing packages needed to create the object

  • override_args (Optional[dict[str, object]]) – override arguments in d or default values of hidden arguments

Return type

Object

Returns

object

Raises

RuntimeError – if a mandatory argument of the object is missing in the dictionary d