catalight.equipment.light_sources.nkt_verify_calibration.generate_data

catalight.equipment.light_sources.nkt_verify_calibration.generate_data(calibration, num_measurements, laser_system, powermeter)

Request randomized conditions for laser system and record power output.

This function will request a random bandwidth, power setpoint (mW), and central wavelength and record the output power of the given laser system. The requested number of measurements are made. The powermeter wavelength setpoint is changed to the central value between measurments and fringe measurments (100% or 12% power setpoint) are skipped. The calibration is supplied to determine the setpoint needed so the code can skip extreme cases. The proper calibration should be loaded into the laser_system object before passing it to this function.

Parameters:
Returns:

Randomized power measurements with columns [‘center’, ‘bandwidth’, ‘requested_power’, ‘measured_power’]

Return type:

pandas.DataFrame