_require_equal_z0

pmrf.models.components.ideal._require_equal_z0(x, z0: Array | ndarray | bool | number | bool | int | float | complex, nports: int, npoints: int)

Thread x through a runtime check that all nports reference impedances are equal.

Parameters:
  • x (Any) – The value to pass through, typically the S-parameter matrix being guarded.

  • z0 (ArrayLike) – The reference impedance, in any shape accepted by pmrf.utils.rf.fix_z0_shape().

  • nports (int) – The number of ports.

  • npoints (int) – The number of frequency points.

Returns:

The unmodified input x.

Return type:

Any

Raises:

equinox.EquinoxRuntimeError – At runtime, if the ports do not all share the same reference impedance.