diff --git a/data/m03_poticalib/pitstop b/data/m03_poticalib/pitstop new file mode 120000 index 0000000..4994f9d --- /dev/null +++ b/data/m03_poticalib/pitstop @@ -0,0 +1 @@ +../../../pitstop \ No newline at end of file diff --git a/data/m04_cycledepends/cycledepends.pdf b/data/m04_cycledepends/cycledepends.pdf new file mode 100644 index 0000000..506cfea Binary files /dev/null and b/data/m04_cycledepends/cycledepends.pdf differ diff --git a/data/m04_cycledepends/cycledepends_20180529.pdf b/data/m04_cycledepends/cycledepends_20180529.pdf index 40c5427..4d7ee96 100644 Binary files a/data/m04_cycledepends/cycledepends_20180529.pdf and b/data/m04_cycledepends/cycledepends_20180529.pdf differ diff --git a/data/m04_cycledepends/cycledepends_20180530.pdf b/data/m04_cycledepends/cycledepends_20180530.pdf index b6eb658..dca27ed 100644 Binary files a/data/m04_cycledepends/cycledepends_20180530.pdf and b/data/m04_cycledepends/cycledepends_20180530.pdf differ diff --git a/data/m04_cycledepends/cycledepends_20180605.pdf b/data/m04_cycledepends/cycledepends_20180605.pdf index 03a5196..610a0a6 100644 Binary files a/data/m04_cycledepends/cycledepends_20180605.pdf and b/data/m04_cycledepends/cycledepends_20180605.pdf differ diff --git a/data/m04_cycledepends/processing_cycledepends.py b/data/m04_cycledepends/processing_cycledepends.py index cb04629..be3ec7c 100644 --- a/data/m04_cycledepends/processing_cycledepends.py +++ b/data/m04_cycledepends/processing_cycledepends.py @@ -10,10 +10,14 @@ import sys #import uncertainties as unc #import uncertainties.unumpy as unp -append = str(sys.argv[1]) +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") diff --git a/data/m04_cycledepends/processing_cycledepends_raw.py b/data/m04_cycledepends/processing_cycledepends_raw.py index c3d3367..c19f454 100644 --- a/data/m04_cycledepends/processing_cycledepends_raw.py +++ b/data/m04_cycledepends/processing_cycledepends_raw.py @@ -10,10 +10,14 @@ import sys #import uncertainties as unc #import uncertainties.unumpy as unp -append = str(sys.argv[1]) +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, diff --git a/data/pit.code-workspace b/data/pit.code-workspace index aba8aac..0c07c1c 100644 --- a/data/pit.code-workspace +++ b/data/pit.code-workspace @@ -2,7 +2,15 @@ "folders": [ { "path": "remote_proj" + }, + { + "path": "/home/patrick/gitlab/pitstop" + }, + { + "path": "m03_poticalib" } ], - "settings": {} + "settings": { + "C_Cpp.workspaceParsingPriority": "medium" + } } \ No newline at end of file diff --git a/data/remote_proj/.vscode/tasks.json b/data/remote_proj/.vscode/tasks.json index 9d15d02..86d5a63 100644 --- a/data/remote_proj/.vscode/tasks.json +++ b/data/remote_proj/.vscode/tasks.json @@ -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" } ] } \ No newline at end of file