process_exp_data_file
despasito.input_output.read_input.process_exp_data_file
- process_exp_data_file(fname)[source]
Import data file and convert columns into dictionary entries.
The headers in the file are the dictionary keys. The top line is skipped, and column headers are the second line. Note that column headers should be thermo properties defined in Available Data Types (e.g. T, P, x1, x2, y1, y2). Mole fractions x1, x2, … should be in the same order as in the bead_configuration line of the input file. No mole fractions should be left out.
- Parameters:
fname (str) – File name or path to experimental data file
- Returns:
file_dict – Dictionary of experimental data from file.
- Return type:
dict