piel.models.physical.electro_optic

piel.models.physical.electro_optic#

Submodules#

Package Contents#

Functions#

linear_phase_mapping_relationship(phase_power_slope, ...)

This function returns a function that maps the power applied to a particular heater resistor linearly. For

linear_phase_mapping_relationship(phase_power_slope: float, zero_power_phase: float)[source]#

This function returns a function that maps the power applied to a particular heater resistor linearly. For example, we might start with a minimum phase mapping of (0,0) where the units are in (Watts, Phase). If we have a ridiculous arbitrary phase_power_slope of 1rad/1W, then the points in our linear mapping would be (0,0), (1,1), (2,2), (3,3), etc. This is implemented as a lambda function that takes in a power and returns a phase. The units of the power and phase are determined by the phase_power_slope and zero_power_phase. The zero_power_phase is the phase at zero power. The phase_power_slope is the slope of the linear mapping. The units of the phase_power_slope are radians/Watt. The units of the zero_power_phase are radians. The units of the power are Watts. The units of the phase are radians.

Parameters:
  • phase_power_slope (float) – The slope of the linear mapping. The units of the phase_power_slope are radians/Watt.

  • zero_power_phase (float) – The phase at zero power. The units of the zero_power_phase are radians.

Returns:

A function that maps the power applied to a particular heater resistor linearly. The units of the power and phase are determined by the phase_power_slope and zero_power_phase. The zero_power_phase is the phase at zero power. The phase_power_slope is the slope of the linear mapping. The units of the phase_power_slope are radians/Watt. The units of the zero_power_phase are radians. The units of the power are Watts. The units of the phase are radians.

Return type:

linear_phase_mapping (function)