Warning: The following command is preliminary. Its syntax may change. Be prepared to make changes to legacy scripts.

HasSameData

Compares one network data object with another network data. Actual calculated values will be compared and no interpolation will be done.

UI Access

None.

Parameters
Name Type Description
<NetworkData> Object The second network data to compare against.
<matrixType> Integer

One of the following:

  • 0 – S-Parameters
  • 1 – Y-Parameters
  • 2 – Z-Parameters
  • 3 – Gamma
  • 4 – Impedance
Note: The default value is 0.
<comparePortNames> Boolean

If True, port names must be identical.

Note: The default value is True.
<compareNoise> Boolean If True, and both network data have noise data, the comparison will fail unless the noise values also match.
Note: The default value is 10.
<relativeTolerance> Double If the absoluteTolerance test fails, then abs(value1 - value2)/max(abs(value1), abs(value2)) must be less than this to be considered equal.
Note: The default value is 1e-14.
<absoluteTolerance> Double If True, then abs(value1 - value2) < absoluteTolerance.
Note: The default value is 0.
Return Value

Boolean True if the compared network data have the same frequency and matrix values; otherwise, False.

Python Syntax HasSameData()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

success = oData.HasSameData(oData2, 0, True, False, 1e-10, 0)