skrf.network.two_port_reflect

skrf.network.two_port_reflect(ntwk1, ntwk2=None)[source]

Generates a two-port reflective two-port, from two one-ports.

Parameters:
  • ntwk1 (one-port Network object) – network seen from port 1
  • ntwk2 (one-port Network object, or None) – network seen from port 2. if None then will use ntwk1.
Returns:

result – two-port reflective network

Return type:

Network object

Notes

The resultant Network is copied from ntwk1, so its various

properties(name, frequency, etc) are inherited from that Network.

Examples

>>> short,open = rf.Network('short.s1p', rf.Network('open.s1p')
>>> rf.two_port_reflect(short,open)