Tools

Module containing tools for Alice

Calibrate conversion factor

Functions and script to calibrate the conversion factor of Alice.

qosst_alice.tools.calibrate_conversion_factor.DEFAULT_VOA_1_LOCATION: str = ''

Default value for the first VOA device.

qosst_alice.tools.calibrate_conversion_factor.DEFAULT_VOA_2_LOCATION: str = ''

Default value for the second VOA device.

qosst_alice.tools.calibrate_conversion_factor.DEFAULT_VOA_START_VALUE: float = 1.0

Default start value for the VOA.

qosst_alice.tools.calibrate_conversion_factor.DEFAULT_VOA_END_VALUE: float = 5.0

Default end value for the VOA.

qosst_alice.tools.calibrate_conversion_factor.DEFAULT_VOA_STEP_VALUE: float = 0.05

Default step value for the VOA.

class qosst_alice.tools.calibrate_conversion_factor.CalibrateConversionFactorData(pm1: ndarray, pm2: ndarray, conversion_factor: float)

Data container for he output of the calibration script of the conversion factor.

Parameters:
  • pm1 (np.ndarray) – array of powers on the first powermeter.

  • pm2 (np.ndarray) – array of powrs on the second powermeter.

  • conversion_factor (float) – value of the conversion factor between the two powermeters.

class qosst_alice.tools.calibrate_conversion_factor.Configuration(powermeter_1_class: str = 'qosst_hal.powermeter.FakePowerMeter', powermeter_2_class: str = 'qosst_hal.powermeter.FakePowerMeter', powermeter_1_location: str = '', powermeter_2_location: str = '', voa_1_class: str = 'qosst_hal.voa.FakeVOA', voa_2_class: str = 'qosst_hal.voa.FakeVOA', voa_1_location: str = '', voa_2_location: str = '', voa_start_value: float = 1.0, voa_end_value: float = 5.0, voa_step_value: float = 0.05)

Configuration object for the calibration of the conversion factor.

powermeter_1_class: str = 'qosst_hal.powermeter.FakePowerMeter'

The class for the first powermeter.

powermeter_2_class: str = 'qosst_hal.powermeter.FakePowerMeter'

The class for the first powermeter.

powermeter_1_location: str = ''

The location of the first power meter.

powermeter_2_location: str = ''

The location for the second power meter.

voa_1_class: str = 'qosst_hal.voa.FakeVOA'

The class for the first VOA.

voa_2_class: str = 'qosst_hal.voa.FakeVOA'

The class for the second VOA.

voa_1_location: str = ''

The device of the first VOA.

voa_2_location: str = ''

The device of the second VOA.

voa_start_value: float = 1.0

The start value of the VOA.

voa_end_value: float = 5.0

The end value of the VOA.

voa_step_value: float = 0.05

The step value of the VOA.

qosst_alice.tools.calibrate_conversion_factor.calibration_conversion_factor(args: Namespace) None

Estimate the conversion factor by taking the power at the output of Alice and the power usually measured by Alice.

Parameters:

args (argparse.Namespace) – the arguments, in particular the save.