catalight.analysis.tools.analyze_cal_data

catalight.analysis.tools.analyze_cal_data(expt, calDF, figsize=(6.5, 4.5), force_zero=True)

Run analysis on previously collected calibration data.

Calibration data should look like a composition sweep experiment and a calibration data frame containing the gasses to be analyzed, their respective starting concentrations, and the elution time from the gc needs to be provided.

Parameters:
  • expt (Experiment) – Experiment object for already run calibration experiment

  • calDF (pandas.DataFrame) – Formatted DataFrame containing gc calibration data. Specific to control file used! Format [ChemID, slope, intercept, start, end, ppm]

  • 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);

  • force_zero (bool, optional) – Add point (x=0, y=0) to data set. The default is True.

Returns:

(run_num_plots, calibration_plots) Axis handles for “run_num” plot and for plots showing expected ppm vs measured counts

Return type:

tuple(matplotlib.axes._axes.Axes, matplotlib.axes._axes.Axes)