from_dict()

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

Create object from dictionary.

Parameters
  • d (Dict[str, Any]) – 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, Any]]) – 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