piglot.utils.solver_utils.find_keyword

find_keyword(file: str, keyword: str) str[source]

Finds the first line where a keyword is defined.

Parameters

filestr

Path for the input file.

keywordstr

Keyword to locate.

Returns

str

Line containing the keyword.

Raises

RuntimeError

If the keyword is not found.