save_sparams
save_sparams#
- save_sparams(sparams: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex], wavelength: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex], filename: Union[str, pathlib.Path], overwrite: bool = True) None [source]#
Exports scattering parameters to a “.sparam” file readable by interconnect.
- Parameters
sparams (ArrayLike) – Numpy array of size (N, d, d) where N is the number of frequency points and d the number of ports.
wavelength (ArrayLike) – Array of wavelengths (in um) of size N.
filename (str or Path) – File path to save file.
overwrite (bool, optional) – If True (default), overwrites any existing file.