dcase_util.containers.DictContainer.load

DictContainer.load(filename=None, file_format=None)[source]

Load file

Parameters
filenamestr, optional

File path, if None given, filename given to class constructor is used. Default value None

file_formatFileFormat, optional

Forced file format, use this when there is a miss-match between file extension and file format. Default value None

Returns
self
Raises
ImportError:

Error if file format specific module cannot be imported

IOError:

File does not exists or has unknown file format