dcase_util.containers.ListDictContainer.save

ListDictContainer.save(filename=None, fields=None, csv_header=True, file_format=None, delimiter=',')[source]

Save file

Parameters
filenamestr, optional

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

fieldslist of str

Fields in correct order, if none given all field in alphabetical order will be outputted Default value None

csv_headerbool

In case of CSV formatted file, first line will contain field names. Names are taken from fields parameter. Default value True

file_formatFileFormat, optional

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

delimiterstr

Delimiter to be used when saving data Default value ‘,’

Returns
self
Raises
IOError:

File has unknown file format