edges_cal.cal_coefficients.Load

class edges_cal.cal_coefficients.Load(*, spectrum: LoadSpectrum, reflections: LoadS11, loss_model: Callable[[ndarray], ndarray] | HotLoadCorrection | None = None, ambient_temperature: float = 298.0)[source]

Wrapper class containing all relevant information for a given load.

Parameters:
  • spectrum (LoadSpectrum) – The spectrum for this particular load.

  • reflections (SwitchCorrection) – The S11 measurements for this particular load.

  • hot_load_correction (HotLoadCorrection) – If this is a hot load, provide a hot load correction.

  • ambient (LoadSpectrum) – If this is a hot load, need to provide an ambient spectrum to correct it.

Methods

__init__(*, spectrum, reflections[, ...])

Method generated by attrs for class Load.

from_io(io_obj, load_name[, f_low, f_high, ...])

Define a full Load from a path and name.

get_temp_with_loss([freq])

Calculate the temperature of the load accounting for loss.

with_calkit(calkit)

Return a new Load with updated calkit.

Attributes

averaged_Q

The average spectrum power ratio, Q (over time).

averaged_spectrum

The average uncalibrated spectrum (over time).

freq

Frequencies of the spectrum.

load_name

The name of the load.

loss_model

The loss model as a callable function of frequency.

s11_model

Callable S11 model as function of frequency.

t_load

The assumed temperature of the internal load.

t_load_ns

The assumed temperature of the internal load + noise source.

temp_ave

The average temperature of the thermistor (over frequency and time).

spectrum

reflections

ambient_temperature