catalight.analysis.tools

Tools to help with performing data analysis.

These were originally built specifically for managing and interacting with FID gas chromatograms. Future development should treat data sets as ambiguously as possible so any data types (e.g. mass spec, FTIR) can utilize the same tools. Created on Mon Feb 6 11:46:49 2023. @author: Briley Bourgeois

Functions

analyze_cal_data(expt, calDF[, figsize, ...])

Run analysis on previously collected calibration data.

build_results_dict(file_list, data_labels, ...)

Generate a results dictionary of X/S and data labels for paths given.

calculate_X_and_S(expt, reactant, ...)

Calculate conversion and selectivity for analyzed GC data.

convert_index(dataframe)

Take in dataframe, convert index from string to float.

get_bool(prompt)

Convert common strings to bool.

get_run_number(filename)

Return run number based on filename.

get_timepassed(concentrations[, ...])

Convert time stamps to array of cumulative time passed.

list_expt_obj(file_paths)

Get list of experiments.

list_matching_files(main_dirs, target, suffix)

Return files containing 'target' and ending in 'suffix' within a folder.

load_results(expt)

Load analysis results of previously analyzed experiment.

run_analysis(expt, calDF[, basecorrect, ...])

Compute the concentrations, averages, and error from GC runs.