The support of Python 2.7 and 3.5 has been dropped with this version (PR #436 from @JAnderson419).
As an illustration below, three 2-ports subnetwork are extracted from a reference 3-ports Network. These 3 subnetworks are recombined into a 3-ports Network.
import skrf as rf # 3 port Network tee = rf.data.tee # 2 port Networks as if one measures the tee with a 2 ports VNA tee12 = rf.subnetwork(tee, [0, 1]) # 2 port Network from ports 1 & 2, port 3 matched tee23 = rf.subnetwork(tee, [1, 2]) # 2 port Network from ports 2 & 3, port 1 matched tee13 = rf.subnetwork(tee, [0, 2]) # 2 port Network from ports 1 & 3, port 2 matched # recreate the original 3 ports Network from the thee 2-port sub-Networks ntw_list = [tee12, tee23, tee13] tee2 = rf.n_twoports_2_nport(ntw_list, nports=3) print(tee2 == tee) # --> True
# In the following example an ideal waveguide of 2.39 mm diameter is # constructed for the high W band, operated in the fundamental TE11 mode. # If no conductivity is provided the walls are treated as perfect # electric conductors. freq = rf.Frequency(88,110,101,'ghz') rf.CircularWaveguide(freq, r=0.5 * 2.39e-3)
ValueErrorif one wants to calculate step or impulse response with a Network with more than one port
NotImplementedErrorif one wants to calculate step or impulse response If used with non-equidistant sampled frequency vector