#s=(sm, sy[0], sy[2])
        #Magcom=Magvec[:,0, :]+1j*Magvec[:,1, :]
        #Magcom=reshape(Magcom, s, order="F")
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        #if self.swp_type=="pwr_first":
        #Magcom=swapaxes(Magcom, 1, 2)
        self.MagcomData = squeeze(Magcom)  #[:, 2, :]
        self.stop_ind = len(self.yoko) - 1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Two_Tone_Pwr_Lyzer(
    name="d1013",
    on_res_ind=33,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(
        main_file="Data_1103/S1A4_all_close_two_tone_pwr_long.hdf5"
    ),  #long_test.hdf5"), #
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    read_data=read_data,
    #swp_type="yoko_first",
)
a.filt.center = 57  #27 #139 #106 #  #137
a.filt.halfwidth = 15
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"

a.end_skip = 20
@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import (absolute, trunc, arccos, shape, float64, linspace, reshape,
                   squeeze, argmax, array, log10, swapaxes, amax, angle)
from taref.plotter.api import colormesh, scatter, line
from h5py import File
from taref.core.api import process_kwargs
from taref.physics.filtering import Filter
from time import time

a = TA53_VNA_Pwr_Lyzer(
    name="d1117",
    on_res_ind=301,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1117/S3A4_trans_swp_n12n10dBm.hdf5"
                     ),  #long_test.hdf5"), #
    fit_indices=[range(850, 2300)],  #range(48,154+1), range(276, 578+1)],
    desc="transmission power sweep",
    offset=-0.1,
    # read_data=read_data,
    swp_type="yoko_first",
)
a.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 400  #8 #10
#a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma = 0.3  #0.035
a.flux_axis_type = "fq"  #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
#a.flux_indices=[range(len(a.yoko)-1)]
示例#3
0
        sm=shape(Magvec)[0]
        s=(sm, self.frq2.shape[0], self.yoko.shape[0])
        Magcom=Magvec[:,0, :]+1j*Magvec[:,1, :]
        Magcom=reshape(Magcom, s, order="F")
        fstart=f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name, self.port_name)][0][0]
        fstep=f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name, self.port_name)][0][1]
        self.frequency=linspace(fstart, fstart+fstep*(sm-1), sm)
        print Magcom.shape
        Magcom=swapaxes(Magcom, 1, 2)
        print Magcom.shape
        self.MagcomData=squeeze(Magcom)
        self.stop_ind=len(self.yoko)-1
        self.filt.N=len(self.frequency)

a=TA53_VNA_Two_Tone_Pwr_Lyzer(name="d1115", on_res_ind=59,#read_data=read_data, # VNA_name="RS VNA",
        rd_hdf=TA53_Read(main_file="Data_1116/S3A4_trans_two_tone_pwr_swp_n3dBm.hdf5"), #long_test.hdf5"), #
        #fit_indices=[range(48,154+1), range(276, 578+1)],
         desc="Gate to IDT low frequency",
         offset=-0.3,
         read_data=read_data,
         #swp_type="yoko_first",
        )
a.filt.center=0 #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth=10 #8 #10
a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma=0.1 #0.035
a.flux_axis_type="yoko" #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip=20
#a.flux_indices=[range(len(a.yoko)-1)]
示例#4
0
                                                     self.port_name)][0][0]
        fstep = f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name,
                                                    self.port_name)][0][1]
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        print Magcom.shape
        #Magcom=swapaxes(Magcom, 1, 2)
        #print Magcom.shape
        self.MagcomData = squeeze(Magcom)
        self.stop_ind = len(self.frq2) - 1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Two_Tone_Pwr_Lyzer(
    name="d1119",
    on_res_ind=59,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1119/S3A4_trans_split_n0dBm.hdf5"
                     ),  #long_test.hdf5"), #
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    read_data=read_data,
    #swp_type="yoko_first",
)
a.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 10  #8 #10
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
#a.flux_indices=[range(len(a.yoko)-1)]
        sy = shape(data)
        s = (sm, sy[0], sy[2])
        Magcom = Magvec[:, 0, :] + 1j * Magvec[:, 1, :]
        Magcom = reshape(Magcom, s, order="F")
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        #if self.swp_type=="pwr_first":
        #    Magcom=swapaxes(Magcom, 1, 2)
        self.MagcomData = squeeze(Magcom)  #[:, 2, :]
        #self.stop_ind=len(self.yoko)-1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Lyzer(
    name="d1124",
    on_res_ind=301,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(
        main_file="Data_1124/S4A4_refl_careful.hdf5"),  #long_test.hdf5"), #
    fit_indices=[range(850, 2300)],  #range(48,154+1), range(276, 578+1)],
    desc="transmission power sweep",
    offset=-0.1,
    read_data=read_data,
    # swp_type="yoko_first",
)
a.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 80  #8 #10
#a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma = 0.3  #0.035
a.flux_axis_type = "fq"  #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
#a.flux_indices=[range(len(a.yoko)-1)]
a.rt_atten = 30
示例#6
0
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 24 18:55:33 2016

@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import absolute, trunc, arccos, shape, float64, linspace, reshape
from taref.plotter.api import colormesh, scatter, line

a = TA53_VNA_Pwr_Lyzer(
    name="d1013",
    on_res_ind=316,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1015/S1A1_just_gate_pwr_flux_swp.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    swp_type="yoko_first",
)
a.filt.center = 53  #139 #106 #  #137
a.filt.halfwidth = 20
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "flux"  #"fq" #
a.bgsub_type = "Abs"  #"Complex" #"Abs" #"dB"

a.end_skip = 10
#a.flux_indices=[range(479, 712)] #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="Abs"
示例#7
0
    range(188, 193),
    range(217, 251 + 1),
    range(266, 275 + 1),
    range(314, 324 + 1)
]
#a.flux_indices=[range(400,434), range(436, 610)]
#a.flux_indices=[range(200, 400)]
a.filter_type = "FFT"

a.bgsub_type = "dB"  #"Complex" #"Abs"
a.save_folder.main_dir = "fig4_flux_swp"

b = TA53_VNA_Pwr_Lyzer(
    name="d1112",
    on_res_ind=635,
    rd_hdf=TA53_Read(main_file="Data_1112/S3A4_trans_pwr_swp.hdf5"),
    desc="transmission power sweep",
    offset=-0.3,
    swp_type="yoko_first",
)
b.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
b.filt.halfwidth = 12  #8 #10
b.flux_axis_type = "flux"  #"fq" #
#b.bgsub_type="Complex" #"Abs" #"dB"
b.end_skip = 10
b.pwr_ind = 22

c = TA88_VNA_Lyzer(
    name="S4A1_midpeak",
    desc="S4A1 Main peak",
    on_res_ind=260,
示例#8
0
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 24 18:55:33 2016

@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import absolute, trunc, arccos, shape, float64, linspace, reshape
from taref.plotter.api import colormesh, scatter, line

a = TA53_VNA_Pwr_Lyzer(
    name="d1013",
    on_res_ind=139,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1020/S1A4_one_side_pwr_flux_swp2.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    swp_type="yoko_first",
)
a.filt.center = 53  #145 #0*105 #53 #139 #106 #  #137
a.filt.halfwidth = 20
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"

a.end_skip = 10
#a.flux_indices=[range(479, 712)] #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="dB" #"Abs"
@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import (absolute, trunc, arccos, shape, float64, linspace, reshape,
                   squeeze, argmax, array, log10, swapaxes, amax, angle)
from taref.plotter.api import colormesh, scatter, line
from h5py import File
from taref.core.api import process_kwargs
from taref.physics.filtering import Filter
from time import time

a = TA53_VNA_Pwr_Lyzer(
    name="d1124",
    on_res_ind=90,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1125/S4A1_IDT_to_Gate_0p10dBm_long.hdf5"
                     ),  #long_test.hdf5"), #
    #fit_indices=[range(850, 2300)], #range(48,154+1), range(276, 578+1)],
    desc="transmission power sweep",
    offset=-0.1,
    # read_data=read_data,
    swp_type="yoko_first",
)
a.filt.center = 172  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 55  #8 #10
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.3  #0.035
a.flux_axis_type = "yoko"  #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 10
#a.flux_indices=[range(len(a.yoko)-1)]
a.time_axis_type = "time"
示例#10
0
        sm=shape(Magvec)[0]
        s=(sm, self.frq2.shape[0], self.yoko.shape[0], self.pwr2.shape[0])
        Magcom=Magvec[:,0, :]+1j*Magvec[:,1, :]
        Magcom=reshape(Magcom, s, order="F")
        fstart=f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name, self.port_name)][0][0]
        fstep=f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name, self.port_name)][0][1]
        self.frequency=linspace(fstart, fstart+fstep*(sm-1), sm)
        print Magcom.shape
        Magcom=swapaxes(Magcom, 1, 2)
        print Magcom.shape
        self.MagcomData=squeeze(Magcom)
        self.stop_ind=len(self.yoko)-1
        self.filt.N=len(self.frequency)

a=TA53_VNA_Two_Tone_Pwr_Lyzer(name="d1113", on_res_ind=59,#read_data=read_data, # VNA_name="RS VNA",
        rd_hdf=TA53_Read(main_file="Data_1113/S3A4_trans_two_tone_pwr_swp.hdf5"), #long_test.hdf5"), #
        #fit_indices=[range(48,154+1), range(276, 578+1)],
         desc="Gate to IDT low frequency",
         offset=-0.3,
         read_data=read_data,
         #swp_type="yoko_first",
        )
a.filt.center=0 #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth=10 #8 #10
a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma=0.1 #0.035
a.flux_axis_type="yoko" #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip=20
#a.flux_indices=[range(len(a.yoko)-1)]
        sy = shape(data)
        s = (sm, sy[0], sy[2])
        Magcom = Magvec[:, 0, :] + 1j * Magvec[:, 1, :]
        Magcom = reshape(Magcom, s, order="F")
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        #if self.swp_type=="pwr_first":
        #    Magcom=swapaxes(Magcom, 1, 2)
        self.MagcomData = squeeze(Magcom)  #[:, 2, :]
        #self.stop_ind=len(self.yoko)-1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Lyzer(
    name="d1122",
    on_res_ind=301,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1122/S3A4_careful_trans_direct.hdf5"
                     ),  #long_test.hdf5"), #
    fit_indices=[range(850, 2300)],  #range(48,154+1), range(276, 578+1)],
    desc="transmission power sweep",
    offset=-0.1,
    read_data=read_data,
    # swp_type="yoko_first",
)
a.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 80  #8 #10
#a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma = 0.3  #0.035
a.flux_axis_type = "fq"  #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
#a.flux_indices=[range(len(a.yoko)-1)]
a.rt_atten = 30
示例#12
0
 def _default_rd_hdf(self):
     return TA53_Read(main_file="Data_0229/S4A4_TA53_SC1516_wideswp.hdf5")
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 24 18:55:33 2016

@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Two_Tone_Lyzer, TA53_Read, qdt
from numpy import absolute,  trunc, arccos, shape, float64, linspace, reshape
from taref.plotter.api import colormesh, scatter, line

a=TA53_VNA_Two_Tone_Lyzer(name="d1013", on_res_ind=55,#read_data=read_data, # VNA_name="RS VNA",
        rd_hdf=TA53_Read(main_file="Data_1101/S1A4_all_close_swap_two_tone2.hdf5"),
        #fit_indices=[range(48,154+1), range(276, 578+1)],
         desc="Gate to IDT low frequency",
         offset=-0.3,
         #swp_type="yoko_first",
        )
a.filt.center=29 #139 #106 #  #137
a.filt.halfwidth=8
a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma=0.1 #0.035
a.flux_axis_type="yoko" #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"

a.end_skip=10
#a.flux_indices=[range(479, 712)] #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="dB" #"Abs"

a.save_folder.main_dir=a.name
示例#14
0
@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import (absolute,  trunc, arccos, shape, float64, linspace, reshape,
                   squeeze, argmax, array, log10, swapaxes, amax, angle)
from taref.plotter.api import colormesh, scatter, line
from h5py import File
from taref.core.api import process_kwargs
from taref.physics.filtering import Filter
from time import time


a=TA53_VNA_Pwr_Lyzer(name="d1124", on_res_ind=117,#read_data=read_data, # VNA_name="RS VNA",
        rd_hdf=TA53_Read(main_file="Data_1124/S4A1_IDT_to_Gate_flux_swp_n20n10dBm.hdf5"), #long_test.hdf5"), #
        #fit_indices=[range(850, 2300)], #range(48,154+1), range(276, 578+1)],
         desc="transmission power sweep",
         offset=-0.1,
        # read_data=read_data,
         swp_type="yoko_first",
        )
a.filt.center=119 #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth=30 #8 #10
a.fitter.fit_type="refl_lorentzian"
a.fitter.gamma=0.3 #0.035
a.flux_axis_type="yoko" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip=10
#a.flux_indices=[range(len(a.yoko)-1)]
示例#15
0
#from taref.plotter.api import colormesh, line
from numpy import array, amax, absolute, real, imag, nan_to_num, squeeze, append, sqrt, pi, mod, floor_divide, trunc, arccos, shape, float64, linspace, reshape
#from taref.physics.fitting import refl_lorent
#from taref.physics.fundamentals import h
from scipy.optimize import fsolve
from taref.core.universal import ODict
from taref.core.api import process_kwargs, get_tag, get_all_tags, tag_property
from taref.physics.filtering import Filter
from taref.physics.qdt import QDT
from taref.plotter.api import line, colormesh, Plotter
from atom.api import Typed

a = TA53_VNA_Lyzer(
    name="d1013",
    on_res_ind=644,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1017/S1A1_just_gate_0dBm_flux_swp.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3)
a.filt.center = 53  #106 #137
a.filt.halfwidth = 20
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #

a.end_skip = 10
#a.flux_indices=[range(479, 712)] #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="Abs"

a.save_folder.main_dir = a.name
示例#16
0
"""

from TA53_fundamental import TA53_VNA_Lyzer, TA53_Read, qdt
#from taref.plotter.api import colormesh, line
from numpy import array, absolute, real, imag, nan_to_num, squeeze, append, sqrt, pi, mod, floor_divide, trunc, arccos, shape, float64, linspace, reshape
#from taref.physics.fitting import refl_lorent
#from taref.physics.fundamentals import h
from scipy.optimize import fsolve

from taref.physics.filtering import Filter

a = TA53_VNA_Lyzer(
    name="d1013",
    on_res_ind=
    63,  #filt=Filter(center=2, halfwidth=80, reflect=False),#read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(
        main_file="Data_1013/S1A1_just_gate_careful_flux_swp.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate low frequency",
)
a.filt.center = 20  #2
a.filt.halfwidth = 5  #80
a.fitter.fit_type = "lorentzian"
a.fitter.gamma = 0.2  #0.035
a.flux_axis_type = "flux"  #"fq" #
a.bgsub_type = "dB"
a.end_skip = 10
#a.flux_indices=[range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="Abs"

a.save_folder.main_dir = a.name
示例#17
0
                                                     self.port_name)][0][0]
        fstep = f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name,
                                                    self.port_name)][0][1]
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        print Magcom.shape
        #Magcom=swapaxes(Magcom, 1, 2)
        print Magcom.shape
        self.MagcomData = squeeze(Magcom)
        self.stop_ind = len(self.yoko) - 1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Two_Tone_Pwr_Lyzer(
    name="d1128",
    on_res_ind=54,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(
        main_file="Data_1128/S4A1S1_pwr_flux_2frq.hdf5"),  #long_test.hdf5"), #
    #fit_indices=[range(850, 2300)], #range(48,154+1), range(276, 578+1)],
    desc="transmission power sweep",
    offset=-0.1,
    read_data=read_data,
    swp_type="yoko_first",
)
a.filt.center = 31  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 10  #8 #10
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.3  #0.035
a.flux_axis_type = "yoko"  #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
#a.flux_indices=[range(len(a.yoko)-1)]
#a.time_axis_type="time"
示例#18
0
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 24 18:55:33 2016

@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Two_Tone_Lyzer, TA53_Read, qdt
from numpy import absolute, trunc, arccos, shape, float64, linspace, reshape
from taref.plotter.api import colormesh, scatter, line

a = TA53_VNA_Two_Tone_Lyzer(
    name="d1013",
    on_res_ind=139,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1022/S1A4_one_side_two_tone.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    swp_type="yoko_first",
)
a.filt.center = 53  #139 #106 #  #137
a.filt.halfwidth = 20
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"

a.end_skip = 10
#a.flux_indices=[range(479, 712)] #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="dB" #"Abs"
示例#19
0
a.save_folder.main_dir = "fig3_ls2"

lyzers = [
    d0514,
    d0316,
    d0629,
    d0518,
    d0506,
    d0509,
    d0503  #, d0629wg,
]

b = TA53_VNA_Pwr_Lyzer(
    name="d1118",
    on_res_ind=301,
    rd_hdf=TA53_Read(main_file="Data_1118/S3A4_trans_swp_n5n15dBm.hdf5"),
    fit_indices=
    [  #range(7, 42), range(79, 120), range(171, 209), range(238, 296),
        range(316, 358),
        range(391, 518),
        range(558, 603),
        # range(629, 681), range(715, 771), range(790, 845),
        # range(872, 921), range(953, 960), range(963, 985)
    ],
    desc="transmission power sweep",
    offset=-0.07,
    swp_type="yoko_first",
)
b.filt.center = 0  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
b.filt.halfwidth = 100  #8 #10
b.fitter.gamma = 0.3 / 10  #0.035
示例#20
0
@author: thomasaref
"""

from TA53_fundamental import TA53_VNA_Lyzer, TA53_Read, qdt
#from taref.plotter.api import colormesh, line
from numpy import array, absolute, real, imag, nan_to_num, squeeze, append, sqrt, pi, mod, floor_divide, trunc, arccos, shape, float64, linspace, reshape
#from taref.physics.fitting import refl_lorent
#from taref.physics.fundamentals import h
from scipy.optimize import fsolve

from taref.physics.filtering import Filter

a = TA53_VNA_Lyzer(
    name="d1013",
    on_res_ind=644,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(
        main_file="Data_1018/S1A4_one_side_0dBm_flux_swp_overnight.hdf5"),
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3)
a.filt.center = 53  #106 #137
a.filt.halfwidth = 20
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "flux"  #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"

a.end_skip = 10
a.flux_indices = [range(479, 712)
                  ]  #range(0,41), range(43, 479), range(482, len(a.yoko))]
#a.bgsub_type="Abs"
        fstart = f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name,
                                                     self.port_name)][0][0]
        fstep = f["Traces"]['{0} - {1}_t0dt'.format(self.VNA_name,
                                                    self.port_name)][0][1]
        self.frequency = linspace(fstart, fstart + fstep * (sm - 1), sm)
        print Magcom.shape
        Magcom = swapaxes(Magcom, 1, 2)
        self.MagcomData = squeeze(Magcom)
        self.stop_ind = len(self.yoko) - 1
        self.filt.N = len(self.frequency)


a = TA53_VNA_Two_Tone_Pwr_Lyzer(
    name="d1110",
    on_res_ind=117,  #read_data=read_data, # VNA_name="RS VNA",
    rd_hdf=TA53_Read(main_file="Data_1110/S1A4_all_two_tone_pwr.hdf5"
                     ),  #long_test.hdf5"), #
    #fit_indices=[range(48,154+1), range(276, 578+1)],
    desc="Gate to IDT low frequency",
    offset=-0.3,
    read_data=read_data,
    #swp_type="yoko_first",
)
a.filt.center = 28  #71 #28*0 #141 #106 #58 #27 #139 #106 #  #137
a.filt.halfwidth = 10  #8 #10
a.fitter.fit_type = "refl_lorentzian"
a.fitter.gamma = 0.1  #0.035
a.flux_axis_type = "yoko"  #"flux" #"fq" #
#a.bgsub_type="Complex" #"Abs" #"dB"
a.end_skip = 20
a.flux_indices = [range(len(a.yoko) - 1)]
示例#22
0
 def _default_rd_hdf(self):
     return TA53_Read(main_file="Data_0229/S4A4_TA53_SC1516_pwrswp_faster.hdf5")