matflow.param_classes.utils.read_numeric_csv_file#

matflow.param_classes.utils.read_numeric_csv_file(path, number=None, start_index=0, delimiter=' ', columns=None, exc_msg=None)#

Load data from a text file.

Parameters:
  • path (str) – Path to the file to load from.

  • number (int | None) – Number of lines to read from the file.

  • start_index (int) – The line number of the file that the seeds start at. Allows skipping headers.

  • delimiter (str) – The delimiter separating values in the file. Defaults to space, but commas and tabs are also sensible (and correspond to CSV and TSV files respectively).

  • columns (list[int] | None) – The columns in the file to read from. Defaults to reading every column.

  • exc_msg (str | None) – ValueError message to return.

Return type:

ndarray[tuple[int, …], dtype[_ScalarType_co]]