gplugins.sax.read.model_from_csv

Contents

gplugins.sax.read.model_from_csv#

gplugins.sax.read.model_from_csv(filepath: str | Path | DataFrame, xkey: str = 'wavelengths', xunits: float = 1, prefix: str = 's') Callable[[...], Dict[Tuple[str, str], Complex[Array, '...']] | Tuple[Int[Array, 'dim'], Int[Array, 'dim'], Complex[Array, '...'], Dict[str, int]] | Tuple[Complex[Array, '...'], Dict[str, int]]][source]#

Returns a SAX Sparameters Model from a CSV file.

The SAX Model is a function that returns a SAX SDict interpolated over wavelength.

Parameters:
  • filepath – CSV Sparameters path or pandas DataFrame.

  • xkey – key for wavelengths in file.

  • xunits – x units in um from the loaded file (um). 1 means 1um.

  • prefix – for the sparameters column names in file.