示例#1
0
 def setUp(self):
     #raise SkipTest('Doesnt work yet')
     self.n_ports = 1
     self.wg = rf.RectangularWaveguide(rf.F(75,100,NPTS), a=100*rf.mil,z0=50)
     wg = self.wg
     self.E = wg.random(n_ports =2, name = 'E')
     #self.E.s[0,:,:] = npy.array([[.1j,1],[1j,1j+2]])
     #print self.E.s[0]
     
     ideals = [
             wg.short( name='short'),
             wg.delay_short( 45.,'deg',name='ew'),
             wg.delay_short( 90.,'deg',name='qw'),
             wg.load(.2+.2j, name='load'),
             ]
     actuals = [
             wg.short( name='short'),
             wg.delay_short( 10.,'deg',name='ew'),
             wg.delay_short( 80.,'deg',name='qw'),
             wg.load(.2+.2j, name='load'),
             ]
     measured = [self.measure(k) for k in actuals]
     
     self.cal = rf.SDDLWeikle(
         is_reciprocal = True, 
         ideals = ideals, 
         measured = measured,
         )
示例#2
0
    def setUp(self):
        #raise SkipTest('Doesnt work yet')
        self.n_ports = 1
        #Exact only with a lossless waveguide
        self.wg = WG_lossless
        wg = self.wg
        self.E = wg.random(n_ports=2, name='E')
        #self.E.s[0,:,:] = npy.array([[.1j,1],[1j,1j+2]])
        #print self.E.s[0]

        ideals = [
            wg.short(name='short'),
            wg.delay_short(45., 'deg', name='ew'),
            wg.delay_short(90., 'deg', name='qw'),
            wg.load(.2 + .2j, name='load'),
        ]
        actuals = [
            wg.short(name='short'),
            wg.delay_short(10., 'deg', name='ew'),
            wg.delay_short(80., 'deg', name='qw'),
            wg.load(.2 + .2j, name='load'),
        ]
        measured = [self.measure(k) for k in actuals]

        self.cal = rf.SDDLWeikle(
            is_reciprocal=True,
            ideals=ideals,
            measured=measured,
        )