class dcase_framework.metadata.MetaDataContainer(*args, **kwargs)[source]
__init__(*args, **kwargs)[source]


__init__(\*args, \*\*kwargs)
add_time_offset(offset) Add time offset to event onset and offset timestamps
append L.append(object) – append object to end
detect_file_format(filename) Detect file format from extension
empty() Check if file is empty
event_roll([label_list, time_resolution, label]) Event roll
event_stat_counts() Event count statistics
exists() Checks that file exists
extend L.extend(iterable) – extend list by appending elements from the iterable
filter([filename, file_list, scene_label, ...]) Filter content
filter_time_segment([onset, offset]) Filter time segment
get_dump_content(data) Clean internal content for saving
get_file_information() Get file information, filename
get_string([show_stats]) Get content in string format
index((value, [start, ...) Raises ValueError if the value is not present.
insert L.insert(index, object) – insert object before index
load([filename]) Load event list from delimited text file (csv-formated)
log([level]) Log container content
pop(...) Raises IndexError if list is empty or index is out of range.
process_events([minimum_event_length, ...]) Process event content
remove L.remove(value) – remove first occurrence of value.
remove_field(field_name) Remove field from meta items
reverse L.reverse() – reverse IN PLACE
save([filename, delimiter]) Save content to csv file
show([show_stats]) Print container content
slice_field(field_name) Slice field values into list
sort L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE;
update(data) Replace content with given list


event_count Get number of events
event_label_count Get number of unique event labels
file_list List of unique files in the container
max_offset Find the offset (end-time) of last event
scene_label_count Get number of unique scene labels
unique_event_labels Get unique event labels
unique_scene_labels Get unique scene labels
unique_tags Get unique tags