piel.tools.openlane.parse.utils
#
Module Contents#
Functions#
|
Check if the keyword is contained in the file lines |
|
Create a DataFrame from the raw lines of a file |
|
Extract the data from the file lines using the given keyword and regex |
|
Extract lines from the file |
- contains_in_lines(file_lines_data: pandas.DataFrame, keyword: str)[source]#
Check if the keyword is contained in the file lines
- Parameters:
file_lines_data (pd.DataFrame) – Dataframe containing the file lines
keyword (str) – Keyword to search for
- Returns:
Dataframe containing the file lines
- Return type:
file_lines_data (pd.DataFrame)
- create_file_lines_dataframe(file_lines_raw)[source]#
Create a DataFrame from the raw lines of a file
- Parameters:
file_lines_raw (list) – list containing the file lines
- Returns:
Dataframe containing the file lines
- Return type:
file_lines_data (pd.DataFrame)
- get_file_line_by_keyword(file_lines_data: pandas.DataFrame, keyword: str, regex: str)[source]#
Extract the data from the file lines using the given keyword and regex
- Parameters:
file_lines_data (pd.DataFrame) – Dataframe containing the file lines
keyword (str) – Keyword to search for
regex (str) – Regex to extract the data
- Returns:
Dataframe containing the extracted values
- Return type:
extracted_values (pd.DataFrame)