skrf.network.innerconnect
- skrf.network.innerconnect(ntwkA, k, l, num=1)[source]
Connect ports of a single n-port network.
this results in a (n-2)-port network. remember port indices start from 0. Ports of a network which has named ports (
Network.port_names) can be given by name instead of by index.Note
A 2-port ‘mismatch’ network is inserted between the connected ports if their impedances are not equal.
- Parameters:
ntwkA (
Network) – network ‘A’k (int or str) – starting port indices on ntwkA ( port indices start from 0 ), or port names if ntwkA has named ports
l (int or str) – starting port indices on ntwkA ( port indices start from 0 ), or port names if ntwkA has named ports
num (int) – number of consecutive ports to connect
- Returns:
ntwkC – new network of rank (ntwkA.nports - 2*num)
- Return type:
See also
connect_sactual S-parameter connection algorithm.
innerconnect_sactual S-parameter connection algorithm.
innerconnect_s_lstsqactual S-parameter connection algorithm using lstsq.
Examples
To connect ports ‘0’ and port ‘1’ on ntwkA
>>> ntwkA = rf.Network('ntwkA.s3p') >>> ntwkC = rf.innerconnect(ntwkA, 0,1)