catalight.analysis.plotting.plot_expt_summary
- catalight.analysis.plotting.plot_expt_summary(expt, calDF, reactant, target_molecule, mole_bal='c', figsize=(6.5, 4.5), savedata='True', switch_to_hours=2)
Call ‘typical’ plotting functions and save output to results path.
Plots and saves “run_num”, “ppm”, and “X and S” for given experiment. run_num: ppm concentration as a function of run number ppm: average ppm concentration w/ error for each experiment condition X and S: Plots the average conversion and selectivity as a function of experimental condition
If savedata=True, will save figures as both .svg and .pickle
- Parameters:
expt (Experiment) – Experiment object which has data and has been analyzed (i.e. has avg_conc.csv etc.)
calDF (pandas.DataFrame) – Formatted DataFrame containing gc calibration data. Specific to control file used! Format [ChemID, slope, intercept, start, end]
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.
- Returns: