load_snp

photonforge.load_snp(filename)

Load an S matrix from a Touchstone (snp) file.

Parameters:

filename (str) – Touchstone file name to load.

Returns:

Tuple with S matrix and frequency arrays that can be used in DataModel.

Return type:

tuple[ndarray, ndarray]

See also

SMatrix.load_snp to load data directly as an S matrix.