Esempio n. 1
0
 def setUp(self):
     '''
     this also tests the ability to read touchstone files
     without an error
     '''
     setup_pylab()
     self.test_dir = os.path.dirname(os.path.abspath(__file__)) + '/'
     self.ntwk1 = rf.Network(os.path.join(self.test_dir, 'ntwk1.s2p'))
     self.ntwk2 = rf.Network(os.path.join(self.test_dir, 'ntwk2.s2p'))
     self.ntwk3 = rf.Network(os.path.join(self.test_dir, 'ntwk3.s2p'))
     self.freq = rf.Frequency(75, 110, 101, 'ghz')
     self.cpw = CPW(self.freq, w=10e-6, s=5e-6, ep_r=10.6)
     l1 = self.cpw.line(0.20, 'm', z0=50)
     l2 = self.cpw.line(0.07, 'm', z0=50)
     l3 = self.cpw.line(0.47, 'm', z0=50)
     self.Fix = rf.concat_ports([l1, l1, l1, l1])
     self.DUT = rf.concat_ports([l2, l2, l2, l2])
     self.Meas = rf.concat_ports([l3, l3, l3, l3])
Esempio n. 2
0
 def setUp(self):
     '''
     this also tests the ability to read touchstone files
     without an error
     '''
     setup_pylab()
     self.test_dir = os.path.dirname(os.path.abspath(__file__))+'/'
     self.ntwk1 = rf.Network(os.path.join(self.test_dir, 'ntwk1.s2p'))
     self.ntwk2 = rf.Network(os.path.join(self.test_dir, 'ntwk2.s2p'))
     self.ntwk3 = rf.Network(os.path.join(self.test_dir, 'ntwk3.s2p'))
     self.freq = rf.Frequency(75,110,101,'ghz')
     self.cpw =  rf.media.CPW(self.freq, w=10e-6, s=5e-6, ep_r=10.6)
     l1 = self.cpw.line(0.20, 'm', z0=50)
     l2 = self.cpw.line(0.07, 'm', z0=50)
     l3 = self.cpw.line(0.47, 'm', z0=50)
     self.Fix = rf.concat_ports([l1, l1, l1, l1])
     self.DUT = rf.concat_ports([l2, l2, l2, l2])
     self.Meas = rf.concat_ports([l3, l3, l3, l3])