update
This commit is contained in:
parent
ab0fc445a7
commit
09f18d911f
|
@ -0,0 +1 @@
|
||||||
|
../../../pitstop
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -10,10 +10,14 @@ import sys
|
||||||
#import uncertainties as unc
|
#import uncertainties as unc
|
||||||
#import uncertainties.unumpy as unp
|
#import uncertainties.unumpy as unp
|
||||||
|
|
||||||
|
try:
|
||||||
append = str(sys.argv[1])
|
append = str(sys.argv[1])
|
||||||
|
except:
|
||||||
|
append = ''
|
||||||
|
|
||||||
plt.ioff()
|
plt.ioff()
|
||||||
plt.style.use('bmh')
|
plt.style.use('bmh')
|
||||||
|
plt.rcParams['axes.facecolor'] = 'white'
|
||||||
fig, axarr = plt.subplots(
|
fig, axarr = plt.subplots(
|
||||||
2,
|
2,
|
||||||
1,
|
1,
|
||||||
|
@ -29,7 +33,8 @@ errs = np.array([])
|
||||||
colors = np.array([])
|
colors = np.array([])
|
||||||
|
|
||||||
data['dv_pit48'] /= 2
|
data['dv_pit48'] /= 2
|
||||||
data['Dv'] = data['v_pit48'] - data['v_keith']
|
data['Dv'] = data['v_pit48'] - data['v_set']
|
||||||
|
data['Dvk'] = data['v_keith'] - data['v_set']
|
||||||
print(data)
|
print(data)
|
||||||
# fit to abs dist
|
# fit to abs dist
|
||||||
linfnc = lambda x, m, c: x*m+c
|
linfnc = lambda x, m, c: x*m+c
|
||||||
|
@ -66,18 +71,18 @@ for i in range(8):
|
||||||
#errs = np.append(errs, np.sqrt(pcov[0][0]))
|
#errs = np.append(errs, np.sqrt(pcov[0][0]))
|
||||||
colors = np.append(colors, p[0].get_color() )
|
colors = np.append(colors, p[0].get_color() )
|
||||||
|
|
||||||
#plot_and_linfit('Dvk', data.cycles == 0, 'reference measurement')
|
plot_and_linfit('Dvk', data.cycles == 0, 'reference measurement')
|
||||||
|
|
||||||
print(fits[0].n)
|
print(fits[0].n)
|
||||||
for i in range(8):
|
#for i in range(8):
|
||||||
axarr[1].errorbar(
|
# axarr[1].errorbar(
|
||||||
data[data.cycles==i]['v_set'],
|
# data[data.cycles==i]['v_set'],
|
||||||
data[data.cycles==i]['t_core'],
|
# data[data.cycles==i]['t_core'],
|
||||||
#fmt='.',
|
# #fmt='.',
|
||||||
alpha=.3,
|
# alpha=.3,
|
||||||
c = colors[i],
|
# c = colors[i],
|
||||||
label="$f_{}: T_{{mean}}={:.1f}$".format(i, np.mean(data[data.cycles==i]['t_core']))
|
# label="$f_{}: T_{{mean}}={:.1f}$".format(i, np.mean(data[data.cycles==i]['t_core']))
|
||||||
)
|
# )
|
||||||
|
|
||||||
axarr[1].set_xlabel('V$_{set}$')
|
axarr[1].set_xlabel('V$_{set}$')
|
||||||
#axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
#axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
||||||
|
@ -90,7 +95,6 @@ axarr[0].legend(
|
||||||
ncol=1)
|
ncol=1)
|
||||||
plt.savefig(
|
plt.savefig(
|
||||||
"./" + __file__[:-3].split("_")[1] + append + ".pdf",
|
"./" + __file__[:-3].split("_")[1] + append + ".pdf",
|
||||||
dpi=1000,
|
dpi=1000)
|
||||||
bbox_inches='tight')
|
|
||||||
|
|
||||||
vtt.unc_tolatex(fits[0], "0")
|
#vtt.unc_tolatex(fits[0], "0")
|
||||||
|
|
|
@ -10,10 +10,14 @@ import sys
|
||||||
#import uncertainties as unc
|
#import uncertainties as unc
|
||||||
#import uncertainties.unumpy as unp
|
#import uncertainties.unumpy as unp
|
||||||
|
|
||||||
|
try:
|
||||||
append = str(sys.argv[1])
|
append = str(sys.argv[1])
|
||||||
|
except:
|
||||||
|
append= ''
|
||||||
|
|
||||||
plt.ioff()
|
plt.ioff()
|
||||||
plt.style.use('bmh')
|
plt.style.use('bmh')
|
||||||
|
plt.rcParams['axes.facecolor'] = 'white'
|
||||||
fig, axarr = plt.subplots(
|
fig, axarr = plt.subplots(
|
||||||
2,
|
2,
|
||||||
1,
|
1,
|
||||||
|
|
|
@ -2,7 +2,15 @@
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "remote_proj"
|
"path": "remote_proj"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/home/patrick/gitlab/pitstop"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "m03_poticalib"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {}
|
"settings": {
|
||||||
|
"C_Cpp.workspaceParsingPriority": "medium"
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -4,11 +4,29 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "(remote) connect",
|
"label": "(remote) sshfs connect",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder}/../sshfs.sh",
|
"command": "${workspaceFolder}/../sshfs.sh",
|
||||||
"auto": true,
|
"auto": true,
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "(remote) gdb connect",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "ssh",
|
||||||
|
"args": [
|
||||||
|
"-fNL", "4242:localhost:4242", "m03"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "(remote) build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "echo 'cant do that'",
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": "$gcc"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue