static PNA.to_hz(f_unit)

A simple convenience function to create frequency in Hz if it is in a different unit

  • freq (float or np.ndarray) – a float or numpy.ndarray of floats of the frequency in f_units
  • f_unit (str) – the units of frequency (Hz, kHz, MHz, GHz, THz)

the converted frequency sweep in Hz

Return type:

float or np.ndarray