get_peaks

awg_designer.all.get_peaks(smatrix, input_pm, output_pms, channel_wavelengths=None)

Get the transmission peaks for certain output channels (output_pms). It simply returns the wavelength for the maximum over the full spectrum (note: the spectrum could be limited to a FSR by passing channel_wavelengths).

Parameters:
smatrix:

SMatrix object as a result of a circuit simulation.

input_pm: string

The input port/mode. For single-mode, you only need to specify the port name.

output_pms: List[str]

List of output “port:mode” names for which to get the peaks.

channel_wavelengths: List[float] (optional)

List of the center wavelengths of each channel. Used to limit the wavelength range to 1 FSR.