dcase_util.containers.AppParameterContainer.override
- AppParameterContainer.override(override)[source]
Override container content recursively.
- Parameters
- overridedict, str
Depending type following is done:
If dict given, this is used directly to override parameters in the container.
If str is given which is a filename of existing file on disk, parameter file is loaded and it is used to override container parameters
If str is given which contains JSON formatted parameters, content is used to override container parameters
- Returns
- self
- Raises
- ImportError:
JSON import failed
- ValueError:
Not JSON formatted string given