catalight.equipment.light_sources.nkt_analyze_calibration

Analysis portion of nkt calibration process.

The main function of this script will calculate the calibration fit parameters based on the last run calibration experiment. Typically, this should be called by the nkt_system’s run_calibration() method.

Functions

benchmark(calibration[, savedata])

Compute and plot the results for the moving and growing window tests.

correction_model(x, a)

Model used in regression between NKT prediction and measured spectra.

determine_correction_factor(...[, ...])

Perform regression between the predicted spectrum and measured spectrum.

determine_fits(corrected_data[, deg])

Convert measured power values at different settings to fit values.

main()

Determine correction factor, build calibration fits, run benchmarking.

plot_correction(calibration_data, ...[, ...])

Plot the results of the determine_correction_factor() function.

plot_fits(calibration_data, calibration[, ...])

Create a multiplot figure with fits to calibration data.