Ejemplo n.º 1
0
def cavity_resonances(date):
    """Use a cauchy fit to get the MW Resonance from an atom signal. In this
    case, with the dye laser at 100 GHz, looking at MW Ionization"""
    folder = os.path.join("..", date)
    norm = False
    fname = "52_fscan.txt"
    d = -1
    norm = False
    fig, ax = plt.subplots()
    fname = os.path.join(folder, fname)
    data, popt = tk.mw_fscan(fname, d, ax, norm=norm)
    fig.tight_layout()
    return
Ejemplo n.º 2
0
def cavity_resonances(date):
    """Using the dye laser at -180 GHz, the MW f is scanned over the
    cavity resonances, finding center, FWHM, and Q values."""
    fig, axes = plt.subplots(nrows=1, sharex=True)
    folder = os.path.join("..", date)
    instrs = [["1_fscan.txt", axes]]
    for instr in instrs:
        [fname, ax] = instr
        print("\n", fname)
        fname = os.path.join(folder, fname)
        data, popt = tk.mw_fscan(fname, -1, ax)
    fig.tight_layout()
    return
Ejemplo n.º 3
0
def cavity_resonances(date):
    import os
    import matplotlib.pyplot as plt
    import toolkit as tk
    folder = os.path.join("..", date)
    norm = False
    fname = "2_fscan.txt"
    d = -1
    norm = False
    fig, ax = plt.subplots()
    fname = os.path.join(folder, fname)
    data, popt = tk.mw_fscan(fname, d, ax, norm=norm)
    fig.tight_layout()
    return
Ejemplo n.º 4
0
def cavity_resonances(date):
    import os
    import matplotlib.pyplot as plt
    import toolkit as tk
    """Using the dye laser at -180 GHz, the MW f is scanned over the
    cavity resonances, finding center, FWHM, and Q values."""
    fig, axes = plt.subplots(nrows=1, sharex=True)
    folder = os.path.join("..", date)
    norm = False
    instrs = [["1_fscan.txt", axes]]
    for instr in instrs:
        [fname, ax] = instr
        print("\n", fname)
        fname = os.path.join(folder, fname)
        data, popt = tk.mw_fscan(fname, 1, ax, norm=norm)
    fig.tight_layout()
    return
Ejemplo n.º 5
0
def cavity_resonances(date):
    import os
    import matplotlib.pyplot as plt
    import toolkit as tk
    folder = os.path.join("..", date)
    norm = False
    instrs = [["1_fscan.txt"], ["3_fscan.txt"]]
    fig, axes = plt.subplots(nrows=len(instrs))
    for iax, instr in enumerate(instrs):
        [fname] = instr
        if len(instrs) > 1:
            ax = axes[iax]
        else:
            ax = axes
        print("\n", fname)
        fname = os.path.join(folder, fname)
        data, popt = tk.mw_fscan(fname, 1, ax, norm=norm)
    fig.tight_layout()
    return
Ejemplo n.º 6
0
def cavity_resonances(date):
    import os
    import matplotlib.pyplot as plt
    import toolkit as tk
    """Using the dye laser at -180 GHz, the MW f is scanned over the
    cavity resonances, finding center, FWHM, and Q values."""
    folder = os.path.join("..", date)
    norm = False
    instrs = [
        ["1_fscan.txt"],
    ]
    fig, axes = plt.subplots(nrows=len(instrs))
    for iax, instr in enumerate(instrs):
        [fname] = instr
        if len(instrs) > 1:
            ax = axes[iax]
        else:
            ax = axes
        print("\n", fname)
        fname = os.path.join(folder, fname)
        data, popt = tk.mw_fscan(fname, 1, ax, norm=norm)
    fig.tight_layout()
    return