tag_extractor module
- class tag_extractor.ExtractRunParametersTagsOperation[source]
Bases:
object
Extract the run parameters of from a database and create a Tag object for each of them
Methods
add_tags
(data, key_column, value_column, ...)Create run-specific parameters & attributes
extract_attributes_and_params
(...[, isOmnetv6])add_attributes
add_iterationvars
add_parameters
add_raw_tags_for_row
add_regex_matches_for_row
- static add_parameters(data, tags, parameters_regex_map, parameter_key_name: str = 'paramKey', parameter_value_name: str = 'paramValue')[source]
- static add_tags(data, key_column, value_column, regex_map, tags)[source]
Create run-specific parameters & attributes
- static extract_attributes_and_params(parameter_extractor, attribute_extractor, parameters_regex_map, attributes_regex_map, iterationvars_regex_map, isOmnetv6: bool = False)[source]
- Parameters:
- parameter_extractorCallable
A function that extracts the contents of the runParam table and returns it as a pandas.DataFrame
- attribute_extractorCallable
A function that extracts the contents of the runAttr table and returns it as a pandas.DataFrame
- attributes_regex_mapdict
The dictionary containing the definitions for the tags to extract from the runAttr table
- iterationvars_regex_mapdict
The dictionary containing the definitions for the tags to extract from the iterationvars attribute
- parameters_regex_mapdict
The dictionary containing the definitions for the tags to extract from the runParam table