Network constructor.
Creates an n-port microwave network from a file or directly from data. If no file or data is given, then an empty Network is created.
Parameters : | file : str or file-object
name : str
comments : str
**kwargs : :
|
---|
See also
Examples
From a touchstone
>>> n = rf.Network('ntwk1.s2p')
From a pickle file
>>> n = rf.Network('ntwk1.ntwk')
Create a blank network, then fill in values
>>> n = rf.Network()
>>> n.f, n.s, n.z0 = [1,2,3],[1,2,3], [1,2,3]
Directly from values
>>> n = rf.Network(f=[1,2,3],s=[1,2,3],z0=[1,2,3])