This commit is contained in:
acereca 2018-08-08 18:08:53 +02:00
parent ab0fc445a7
commit 09f18d911f
9 changed files with 53 additions and 18 deletions

1
data/m03_poticalib/pitstop Symbolic link
View File

@ -0,0 +1 @@
../../../pitstop

Binary file not shown.

View File

@ -10,10 +10,14 @@ import sys
#import uncertainties as unc #import uncertainties as unc
#import uncertainties.unumpy as unp #import uncertainties.unumpy as unp
append = str(sys.argv[1]) try:
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")

View File

@ -10,10 +10,14 @@ import sys
#import uncertainties as unc #import uncertainties as unc
#import uncertainties.unumpy as unp #import uncertainties.unumpy as unp
append = str(sys.argv[1]) try:
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,

View File

@ -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"
}
} }

View File

@ -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"
} }
] ]
} }