cratepy.ioput.readprocedures.read_discretization_file_path

read_discretization_file_path(file, file_path, keyword, valid_exts, discret_file_dir=None)[source]

Read spatial discretization file path.

The specification of the spatial discretization file path has the following input data file syntax:

Discretization_File
< path >

where path is the path of the spatial discretization file.


Parameters:
  • file (file) – Data file.

  • file_path (str) – Data file path.

  • keyword (str) – Keyword.

  • valid_exts (tuple[str]) – Valid extensions of spatial discretization file.

  • discret_file_dir (str, default=None) – Spatial discretization file directory path.

Returns:

discret_file_path – Spatial discretization file path.

Return type:

str