ResSimpy.Nexus.nexus_file_operations.looks_like_grid_array

ResSimpy.Nexus.nexus_file_operations.looks_like_grid_array(file_path: str, lines2check: int = 10) bool[source]

Returns true if a Nexus include file begins with one of the Nexus grid array keywords.

Parameters:
  • file_path (str) – Path to Nexus include file

  • lines2check (int) – First number of lines in file to check, looking for

  • Default (a Nexus grid array keyword.) – first 10 lines of file

Returns:

bool – True if file begins with one of Nexus grid array keywords