pint.models.model_builder.parse_parfile

pint.models.model_builder.parse_parfile(parfile)[source]

Function for parsing .par file or .par style StringIO.

Parameters:

parfile (str or file-like object) – Input .par file name or string contents.

Returns:

Parameter and its associated lines. The key is the parameter name and the value is a list of the lines associated to the parameter name.

Return type:

dict