ResSimpy.Nexus.nexus_file_operations.get_table_header
- ResSimpy.Nexus.nexus_file_operations.get_table_header(file_as_list: list[str], header_values: dict[str, str]) tuple[int, list[str]][source]
Gets the table headers for a given line in a file.
- Parameters:
file_as_list (list[str]) – file represented as a list of strings
header_values (dict[str, str]) – dictionary of column headings to populate from the table
- Raises:
ValueError – if no headers belonging to the header_values dict is found
- Returns:
int, list[str] – index in the file provided for the header, list of headers as Nexus keyword format.