In [1]:
import sys
sys.path.append('/mnt/labshare/Programs/python/HelperFunctions/')
from myfunctions import *

from os import path, listdir, stat

import plotly.tools as tls
import plotly.plotly as py



In [50]:
samplename = 'CH008'
maindatapath = '/mnt/labshare/Experiments/JPM/CH008/'
listdir(maindatapath)


Out[50]:
['flux2At65dBm',
 '2-8GHz.s2p',
 'fluxAt60dBm',
 'dispshift',
 'Flux Tuning of CH008 Cavity.png',
 'dispersiveshift',
 'flux']

In [51]:
plotS21(path.join(maindatapath, '2-8GHz.s2p'))


Out[51]:
({'data': [{'line': {'width': 1},
    'mode': 'lines',
    'name': '/mnt/labshare/Experiments/JPM/CH008/2-8GHz.s2p',
    'type': 'scatter',
    'x': array([ 2.00375,  2.0075 ,  2.01125, ...,  7.9925 ,  7.99625,  8.     ]),
    'y': array([-71.25724, -67.30714, -73.33531, ..., -36.36139, -37.41053,
           -38.14913])}],
  'layout': {'title': 'Sample',
   'xaxis': {'mirror': 'ticks',
    'showline': True,
    'tickfont': {'size': 16},
    'ticks': 'inside',
    'title': 'Frequency (GHz)',
    'titlefont': {'size': 22},
    'zeroline': False},
   'yaxis': {'mirror': 'ticks',
    'showline': True,
    'tickfont': {'size': 16},
    'ticks': 'inside',
    'title': 'S21 (dB)',
    'titlefont': {'size': 22},
    'zeroline': False}}},
 array([  2.00375000e+09,   2.00750000e+09,   2.01125000e+09, ...,
          7.99250000e+09,   7.99625000e+09,   8.00000000e+09]),
 array([-71.25724, -67.30714, -73.33531, ..., -36.36139, -37.41053,
        -38.14913]))

In [33]:
plotDispersiveShift(path.join(maindatapath, 'dispshift'), samplename=samplename)



In [45]:
fluxdatapath = path.join(maindatapath, 'fluxAt60dBm')
plotFluxDependence(fluxdatapath, samplename=samplename);



In [46]:
fluxfiles = sorted(listdir(fluxdatapath), key=lambda x: float(x.split('.')[0]))
fluxes = []
s21 = []
for f in fluxfiles:
    fluxes.append(float(f.split('.')[0]))
    fig, x, y = plotS21(path.join(fluxdatapath, f), show=False)
    s21.append(10**(y/20.))
    
trace = Heatmap(
    x = x,
    y = fluxes,
    z = s21
)

iplot(Figure(data = [trace]))



In [25]:
fig, x, y = plotS21(path.join(fluxdatapath, f))


Feb. 25th 2016 Flux Tuning

Trying to get a finer scan of flux tuning, all below 90mK


In [49]:
fluxdatapath = path.join(maindatapath, 'flux2At65dBm')
plotFluxDependence(fluxdatapath, samplename=samplename);
fluxfiles = sorted(listdir(fluxdatapath), key=lambda x: float(x.split('.s2p')[0]))
fluxes = []
s21 = []
for f in fluxfiles:
    fluxes.append(float(f.split('.s2p')[0]))
    fig, x, y = plotS21(path.join(fluxdatapath, f), show=False)
    s21.append(10.**(y/20.))
#     s21.append(y)
    
trace = Heatmap(
    x = x,
    y = fluxes,
    z = s21
)

iplot(Figure(data = [trace]))



In [ ]: