catalight.analysis.run_change_xdata.main
- catalight.analysis.run_change_xdata.main(expt_paths, calDF, new_x, units, reactant, target_molecule, mole_bal='c', figsize=(6.5, 4.5), savedata=False, switch_to_hours=2)
Change the x axis data for previously plotted experiments.
- Parameters:
expt_paths (list of str) – List of full paths to expt_log.txt files.
calDF (pandas.DataFrame) – Formatted DataFrame containing gc calibration data. Specific to control file used! Format [ChemID, slope, intercept, start, end]
new_x (list) – Array of new data to be used inplace of old x axis
units (str) – new units for new x axis data
reactant (str) – String identity of reactant molecule to track. Must match what exists in the calibration file exactly.
target_molecule (str) – String identity of the target to use when calculating selectivity. Must match what exists in the calibration file exactly.
mole_bal (str, optional) – Code will perform a mole balance for the element provided. The default is ‘c’. (i.e. carbon balance)
figsize (tuple, optional) – Desired size of output figure in inches (x,y), Default is (6.5, 4.5). figsize suggestions: 1/2 slide = (6.5, 4.5); 1/6 slide = (4.35, 3.25); 1/4 slide = (5, 3.65); Full slide = (9, 6.65);
savedata (bool, optional) – Indicates whether or not to save data. The default is ‘True’.
switch_to_hours (float, optional) – Time in hours when the output should switch units to hours instead of minutes. The default is 2.
- Return type:
None.