def test_init_from_y(self): n2.Network(frequency=self.freq, y=self.s_2port, z0=50)
def setUp(self): self.test_dir = os.path.dirname(os.path.abspath(__file__)) + '/' self.freq = rf.Frequency(1, 10, 101, 'ghz') self.s_2port = rf.rand_c(len(self.freq), 2, 2) self.s_1port = rf.rand_c(len(self.freq), 1, 1) self.n = n2.Network(frequency=self.freq, s=self.s_2port, z0=50)