test_circuitmodel

ipkiss3.all.circuit_sim.test_circuitmodel(model, wavelengths, debug=False)

Test a compact model by running a wavelength sweep.

Parameters:
model: CompactModel

The compact model to use. See also the tutorial on building compact models.

wavelengths: array

List of wavelengths to ask for the S-matrix.

debug: bool

if True, you can step through your compact model definition (more specifically, the calculate_smatrix function) using a Python debugger.

Returns:
SMatrix1DSweep