file2paramdict

despasito.input_output.read_input.file2paramdict

file2paramdict(filename, delimiter=' ')[source]

Converted text file into a dictionary.

Each line in the input file is a key followed by a value in the resulting dictionary.

Parameters:
  • filename (str) – File of keys and values

  • delimiter (str, Optional, default=” “) – String separating key and value within file

Returns:

dictionary – Resulting dictionary

Return type:

dict