Skip to content
Snippets Groups Projects
Commit bdb0cb84 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

changed units in the dataframes(ADU)

parent b170e5ee
Branches
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "91b007d1c3f34b39b4bc4d4fc430fcbf", "model_id": "3e2d3d3b5277494f85271c692e649ebc",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "a989b58d9fa44eb0827c087afd0c5efe", "model_id": "2f2b9a689ac64957add1c74440771c10",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "5fb4ecee398f4c0ebff2e7b679b525fe", "model_id": "1831791853fb48518c181250f896455b",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "6a08c9595e524587a810c29bb75c713e", "model_id": "7a1a2ec17ed748459605d0f825114470",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "fde2af87a1934f37b1ec1d7bf43a2dff", "model_id": "589693bccaf84ff1b7a20daf6d9a8b60",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "1f8f0870133d44468fd31fa1ab9434cf", "model_id": "6d8bbd4db846424787ee5f74e19ea1b3",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
......
...@@ -139,14 +139,14 @@ def on_start_clicked(b): ...@@ -139,14 +139,14 @@ def on_start_clicked(b):
Ig = np.array(Igmm)/normalization_factor(width) Ig = np.array(Igmm)/normalization_factor(width)
gm_S = np.array(gm)/normalization_factor(width) gm_S = np.array(gm)/normalization_factor(width)
#plot results #plot results
clear_output() #clear_output()
plot_transfer(Vgs,Idmm,gm,points,norm_unit) plot_transfer(Vgs,Idmm,gm,points,norm_unit)
#save results #save results
if norm_unit =='mA/mm': if norm_unit =='mA/mm':
header=['VGS(V)','VDS(V)','IDmm(mA/mm)',"IGmm(mA/mm)",'gm(mS/mm)',"ABS(IDmm)(mA/mm)","ABS(IGmm)(mA/mm)","ID(A)","IG(A)","gm(S)"] header=['VGS/V','VDS/V','ID/A',"IG/A",'gm/S',"IDmm/mA/mm","IGmm/mA/mm","gm/mS/mm"]
else: else:
header=['VGS(V)','VDS(V)','IDmm(uA/um)',"IGmm(uA/um)",'gm(uS/um)',"ABS(IDmm)(uA/um)","ABS(IGmm)(uA/um)","ID(A)","IG(A)","gm(S)"] header=['VGS/V','VDS/V','ID/A',"IG/A",'gm/S',"IDmm/uA/um","IGmm/uA/um","gm/uS/um"]
data = {header[0]:Vgs,header[1]:Vds,header[2]:Idmm,header[3]:Igmm,header[4]:gm,header[5]:np.abs(Idmm),header[6]:np.abs(Igmm),header[7]:Id,header[8]:Ig,header[9]:gm_S} data = {header[0]:Vgs,header[1]:Vds,header[2]:Id,header[3]:Ig,header[4]:gm_S,header[5]:Idmm,header[6]:Igmm,header[7]:gm}
df = pd.DataFrame(data) df = pd.DataFrame(data)
#write to file #write to file
...@@ -203,15 +203,15 @@ def on_start_clicked(b): ...@@ -203,15 +203,15 @@ def on_start_clicked(b):
Id = np.array(Idmm)/normalization_factor(width) Id = np.array(Idmm)/normalization_factor(width)
Ig = np.array(Igmm)/normalization_factor(width) Ig = np.array(Igmm)/normalization_factor(width)
#plot results #plot results
clear_output() #clear_output()
plot_output(Vds,Idmm,Igmm,points,norm_unit) plot_output(Vds,Idmm,Igmm,points,norm_unit)
#save results #save results
if norm_unit == 'mA/mm': if norm_unit == 'mA/mm':
header=['VGS(V)','VDS(V)','IDmm(mA/mm)',"IGmm(mA/mm)","ABS(IDmm)(mA/mm)","ABS(IGmm)(mA/mm)","ID(A)","IG(A)"] header=['VGS/V','VDS/V',"ID/A","IG/A",'IDmm/mA/mm',"IGmm/mA/mm"]
else: else:
header=['VGS(V)','VDS(V)','IDmm(uA/um)',"IGmm(uA/um)","ABS(IDmm)(uA/um)","ABS(IGmm)(uA/um)","ID(A)","IG(A)"] header=['VGS/V','VDS/V',"ID/A","IG/A",'IDmm/uA/um',"IGmm/uA/um"]
data = {header[0]:Vgs,header[1]:Vds,header[2]:Idmm,header[3]:Igmm,header[4]:np.abs(Idmm),header[5]:np.abs(Igmm),header[6]:Id,header[7]:Ig} data = {header[0]:Vgs,header[1]:Vds,header[2]:Id,header[3]:Ig,header[4]:Idmm,header[5]:Igmm}
df = pd.DataFrame(data) df = pd.DataFrame(data)
#write to file #write to file
...@@ -248,15 +248,15 @@ def on_start_clicked(b): ...@@ -248,15 +248,15 @@ def on_start_clicked(b):
#execute measurement #execute measurement
Vgs,Igmm,ABSIgmm=Gatediode(smu1,smu3,smu4,integration_gatediode.value,norm,device) Vgs,Igmm,ABSIgmm=Gatediode(smu1,smu3,smu4,integration_gatediode.value,norm,device)
Ig = np.array(Igmm)/normalization_factor(width) Ig = np.array(Igmm)/normalization_factor(width)
clear_output() #clear_output()
plot_gatediode(Vgs,Igmm,norm_unit) plot_gatediode(Vgs,Igmm,norm_unit)
#save results #save results
if norm_unit == 'mA/mm': if norm_unit == 'mA/mm':
header=['VGS(V)','IGmm(mA/mm)',"ABS(IGmm)(mA/mm)",'IG(A)'] header=['VGS/V','IG/A','IGmm/mA/mm']
else: else:
header=['VGS(V)','IGmm(uA/um)',"ABS(IGmm)(uA/um)",'IG(A)'] header=['VGS/V','IG/A','IGmm/uA/um']
data = {header[0]:Vgs,header[1]:Igmm,header[2]:ABSIgmm,header[3]:Ig} data = {header[0]:Vgs,header[1]:Ig,header[2]:Igmm}
df = pd.DataFrame(data) df = pd.DataFrame(data)
filename =f"{sample['sample'].value}_{sample['field'].value}_{sample['device'].value}_D.txt" filename =f"{sample['sample'].value}_{sample['field'].value}_{sample['device'].value}_D.txt"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment