dcase_util.processors.ProcessingChain
- class dcase_util.processors.ProcessingChain(*args, **kwargs)[source]
__init__ method.
Methods
__init__
(*args, **kwargs)__init__ method.
append
(object, /)Append object to the end of the list.
call_method
(method_name[, parameters])Call class method in the processing chain items
chain_item
(processor_name)Get item based processor_name from the processing chain.
chain_item_exists
(processor_name)Check if item exists already in the chain
chain_string
()Basic info about the items in the chain.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
delimiter
([exclude_delimiters])Use csv.sniffer to guess delimiter for CSV file
detect_file_format
([filename])Detect file format from extension
empty
()Check if file is empty
exists
()Checks that file exists
extend
(iterable, /)Extend list by appending elements from the iterable.
filter
([case_insensitive_fields])Filter content based on field values.
get_dump_content
(data)Clean internal content for saving
get_field
(field_name[, skip_items_without_field])Get all data from field.
get_field_unique
(field_name)Get unique data from field.
get_file_information
()Get file information, filename
index
(value[, start, stop])Return first index of value.
insert
(index, object, /)Insert object before index.
is_package
([filename])Determine if the file is compressed package.
load
([filename, fields, csv_header, ...])Load file
log
([level])Log container content
log_chain
([level])Log chain information
pop
([index])Remove and return item at index (default last).
process
([data, store_processing_chain])Process the data with processing chain
processor_class
(processor_name, **kwargs)Processor class initialized.
processor_class_reference
(processor_name)Processor class reference.
processor_exists
(processor_name)Checks that processor exists in the chain.
push_processor
(processor_name[, ...])Push processor item to the chain, if item already exists in the processing chain update only parameters.
remove
(value, /)Remove first occurrence of value.
remove_field
(field_name)Remove field from data items
reverse
(/)Reverse IN PLACE.
save
([filename, fields, csv_header, ...])Save file
search
(key, value)Search in the list of dictionaries
show
([mode, indent, visualize])Print container content
Show chain information.
sort
(*[, key, reverse])Sort the list in ascending order and return None.
to_html
([indent])Get container information in a HTML formatted string
to_string
([ui, indent])Get container information in a string
update
(data)Replace content with given list
validate_format
()Validate file format
Attributes
bytes
File size in bytes
logger
Logger instance
md5
Checksum for file.
valid_formats
Valid formats
valid_input_types
Valid input data types
valid_output_types
Valid output data types