sdynpy.fileio.sdynpy_uff.parse_uff_line

parse_uff_line(line, format_specs, read_number=None)[source]

Parses a line from a universal file format

Parameters
  • line (str) – A line from a unv file

  • format_specs (iterable) – The format specifiers for the line that determines how the string is transformed into data

  • read_number (int, optional) – The number of entries to read. Will repeat the format specifiers if necessary

Raises

UFFReadError – Raised if an error occurs reading the file.

Returns

output – Data from this line of the unv file.

Return type

list