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.unumpy as unp
|
||||
|
||||
try:
|
||||
append = str(sys.argv[1])
|
||||
except:
|
||||
append = ''
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
plt.rcParams['axes.facecolor'] = 'white'
|
||||
fig, axarr = plt.subplots(
|
||||
2,
|
||||
1,
|
||||
|
@ -29,7 +33,8 @@ errs = np.array([])
|
|||
colors = np.array([])
|
||||
|
||||
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)
|
||||
# fit to abs dist
|
||||
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]))
|
||||
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)
|
||||
for i in range(8):
|
||||
axarr[1].errorbar(
|
||||
data[data.cycles==i]['v_set'],
|
||||
data[data.cycles==i]['t_core'],
|
||||
#fmt='.',
|
||||
alpha=.3,
|
||||
c = colors[i],
|
||||
label="$f_{}: T_{{mean}}={:.1f}$".format(i, np.mean(data[data.cycles==i]['t_core']))
|
||||
)
|
||||
#for i in range(8):
|
||||
# axarr[1].errorbar(
|
||||
# data[data.cycles==i]['v_set'],
|
||||
# data[data.cycles==i]['t_core'],
|
||||
# #fmt='.',
|
||||
# alpha=.3,
|
||||
# c = colors[i],
|
||||
# label="$f_{}: T_{{mean}}={:.1f}$".format(i, np.mean(data[data.cycles==i]['t_core']))
|
||||
# )
|
||||
|
||||
axarr[1].set_xlabel('V$_{set}$')
|
||||
#axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
||||
|
@ -90,7 +95,6 @@ axarr[0].legend(
|
|||
ncol=1)
|
||||
plt.savefig(
|
||||
"./" + __file__[:-3].split("_")[1] + append + ".pdf",
|
||||
dpi=1000,
|
||||
bbox_inches='tight')
|
||||
dpi=1000)
|
||||
|
||||
vtt.unc_tolatex(fits[0], "0")
|
||||
#vtt.unc_tolatex(fits[0], "0")
|
||||
|
|
|
@ -10,10 +10,14 @@ import sys
|
|||
#import uncertainties as unc
|
||||
#import uncertainties.unumpy as unp
|
||||
|
||||
try:
|
||||
append = str(sys.argv[1])
|
||||
except:
|
||||
append= ''
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
plt.rcParams['axes.facecolor'] = 'white'
|
||||
fig, axarr = plt.subplots(
|
||||
2,
|
||||
1,
|
||||
|
|
|
@ -2,7 +2,15 @@
|
|||
"folders": [
|
||||
{
|
||||
"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",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "(remote) connect",
|
||||
"label": "(remote) sshfs connect",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/../sshfs.sh",
|
||||
"auto": true,
|
||||
"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