ResSimpy.Nexus.nexus_file_operations.expand_include
- ResSimpy.Nexus.nexus_file_operations.expand_include(file_as_list: list[str], recursive: bool = True) tuple[list[str], Optional[str]][source]
Expands out include files. If recursive set to True will expand all include_locations including nested.
- Parameters:
file_as_list (list[str]) – a list of strings containing each line of the file as a new entry
recursive (bool) – If recursive set to True will expand all include_locations including nested include_locations
- Raises:
ValueError – if no value found after INCLUDE keyword in file
- Returns:
list[str] – list of strings containing each line of the file as a new entry but with files following include_locations expanded out