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:
calibration (pandas.DataFrame) – calibration fits for nkt_laser system
num_measurements (int) – Number of random conditions to request for verfication
laser_system (catalight.equipment.light_sources.nkt_system.NKT_System) – NKT System to run verification on
powermeter (catalight.equipment.power_meter.newport.NewportMeter) – Compatible power meter object
- Returns:
Randomized power measurements with columns [‘center’, ‘bandwidth’, ‘requested_power’, ‘measured_power’]
- Return type: