lumerical#

This module contains convenience functions for parsing Lumerical .sparam data files.

It works with all formats with optional extras as described on their website. Results are compiled into a pandas DataFrame that can be filtered and grouped as needed to construct the desired s-parameter matrix.

Functions

df_to_sdict(df)

Create an s-dictionary from a dataframe of s-parameters.

load_sparams(filename)

Load S-parameters from a Lumerical ".sparam" or ".dat" file.

save_sparams(sparams, wavelength, filename)

Exports scattering parameters to a ".sparam" file readable by interconnect.