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

Translate Measurement Labels in English

parent 0fad2a3e
No related branches found
No related tags found
No related merge requests found
...@@ -9,27 +9,27 @@ def probendaten(): ...@@ -9,27 +9,27 @@ def probendaten():
probendaten = GridspecLayout(6,2) probendaten = GridspecLayout(6,2)
probendaten[0,0] = widgets.Label('Wafer',layout=Layout(height='auto', width = width)) probendaten[0,0] = widgets.Label('Wafer',layout=Layout(height='auto', width = width))
probendaten[0,1] = widgets.Label('Bemerkung',layout=Layout(height='auto', width = width)) probendaten[0,1] = widgets.Label('Comment',layout=Layout(height='auto', width = width))
probendaten[1,0] = widgets.Text(layout=Layout(height='auto', width = width)) # wafer value probendaten[1,0] = widgets.Text(layout=Layout(height='auto', width = width)) # wafer value
probendaten[1,1] = widgets.Text(layout=Layout(height='auto', width = width)) # Bemerkung value probendaten[1,1] = widgets.Text(layout=Layout(height='auto', width = width)) # Bemerkung value
probendaten[2,0] = widgets.Label('Probe',layout=Layout(height='auto', width = width)) probendaten[2,0] = widgets.Label('Sample',layout=Layout(height='auto', width = width))
probendaten[3,0] = widgets.Text(layout=Layout(height='auto', width = width)) #probe value probendaten[3,0] = widgets.Text(layout=Layout(height='auto', width = width)) #probe value
probendaten[4,0] = widgets.Label('Feld',layout=Layout(height='auto', width = width)) probendaten[4,0] = widgets.Label('Field',layout=Layout(height='auto', width = width))
probendaten[4,1] = widgets.Label('Temeperatur (K)',layout=Layout(height='auto', width = width)) probendaten[4,1] = widgets.Label('Temeperature (K)',layout=Layout(height='auto', width = width))
probendaten[5,0] = widgets.Text(layout=Layout(height='auto', width = width)) # Feld value probendaten[5,0] = widgets.Text(layout=Layout(height='auto', width = width)) # Feld value
probendaten[5,1] = widgets.BoundedFloatText(value = 295,min = 0 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #Temperatur value probendaten[5,1] = widgets.BoundedFloatText(value = 295,min = 0 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #Temperatur value
dict = { dict = {
'wafer': probendaten[1,0], 'wafer': probendaten[1,0],
'bemerkung':probendaten[1,1], 'comment':probendaten[1,1],
'probe':probendaten[3,0], 'sample':probendaten[3,0],
'feld':probendaten[5,0], 'field':probendaten[5,0],
'temperatur':probendaten[5,1] 'temperature':probendaten[5,1]
} }
tab = widgets.Tab() tab = widgets.Tab()
tab.children = [probendaten] tab.children = [probendaten]
tab.set_title(0,'Probendaten') tab.set_title(0,'Sample Information')
return tab,dict return tab,dict
...@@ -38,21 +38,21 @@ def messparameter(): ...@@ -38,21 +38,21 @@ def messparameter():
width = 'auto' width = 'auto'
messparameter = GridspecLayout(15,1) messparameter = GridspecLayout(15,1)
messparameter[0,0] = widgets.Label('U_start (V)',layout=Layout(height='auto', width = width)) messparameter[0,0] = widgets.Label('V_start (V)',layout=Layout(height='auto', width = width))
messparameter[1,0] = widgets.BoundedFloatText(value = 1,min =-40 ,max = 40,step = 1,layout=Layout(height='auto', width = width)) # Start value messparameter[1,0] = widgets.BoundedFloatText(value = 1,min =-40 ,max = 40,step = 1,layout=Layout(height='auto', width = width)) # Start value
messparameter[2,0] = widgets.Label('U_stop (V)',layout=Layout(height='auto', width = width)) messparameter[2,0] = widgets.Label('V_stop (V)',layout=Layout(height='auto', width = width))
messparameter[3,0] = widgets.BoundedFloatText(value = -3,min =-40 ,max = 40,step = 1,layout=Layout(height='auto', width = width)) #stop value messparameter[3,0] = widgets.BoundedFloatText(value = -3,min =-40 ,max = 40,step = 1,layout=Layout(height='auto', width = width)) #stop value
messparameter[4,0] = widgets.Label('Spannungsschritt (V)',layout=Layout(height='auto', width = width)) messparameter[4,0] = widgets.Label('V_step (V)',layout=Layout(height='auto', width = width))
messparameter[5,0] = widgets.BoundedFloatText(value = 0.05,min =0.01 ,max = 80,step = 0.01,layout=Layout(height='auto', width = width)) #step value messparameter[5,0] = widgets.BoundedFloatText(value = 0.05,min =0.01 ,max = 80,step = 0.01,layout=Layout(height='auto', width = width)) #step value
messparameter[6,0] = widgets.Label('Warten im Spannungsschritt (s)',layout=Layout(height='auto', width = width)) messparameter[6,0] = widgets.Label('Wait in Voltage Point (s)',layout=Layout(height='auto', width = width))
messparameter[7,0] = widgets.BoundedFloatText(value = 0,min = 0 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #sleep value messparameter[7,0] = widgets.BoundedFloatText(value = 0,min = 0 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #sleep value
messparameter[8,0] = widgets.Label('Radius der Teststruktur (um)',layout=Layout(height='auto', width = width)) messparameter[8,0] = widgets.Label('Radius of The Test Stucture(um)',layout=Layout(height='auto', width = width))
messparameter[9,0] = widgets.BoundedIntText(value = 50,min = 1 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #radius value messparameter[9,0] = widgets.BoundedIntText(value = 50,min = 1 ,max = sys.float_info.max,step = 1,layout=Layout(height='auto', width = width)) #radius value
messparameter[10,0] = widgets.Label('Beobachteter Frequenzpunkt',layout=Layout(height='auto', width = width)) messparameter[10,0] = widgets.Label('Observed Frequency Point',layout=Layout(height='auto', width = width))
messparameter[11,0] = widgets.BoundedIntText(value = 2,min = 1 ,max = sys.maxsize,step = 1,layout=Layout(height='auto', width = width)) #Frequenzpunkt value messparameter[11,0] = widgets.BoundedIntText(value = 2,min = 1 ,max = sys.maxsize,step = 1,layout=Layout(height='auto', width = width)) #Frequenzpunkt value
messparameter[12,0] = widgets.Label('Beobachteter Spannungspunkt',layout=Layout(height='auto', width = width)) messparameter[12,0] = widgets.Label('Observed Voltage Point',layout=Layout(height='auto', width = width))
messparameter[13,0] = widgets.BoundedIntText(value = 20,min = 1 ,max = sys.maxsize,step = 1,layout=Layout(height='auto', width = width)) #Spannungspunkt value messparameter[13,0] = widgets.BoundedIntText(value = 20,min = 1 ,max = sys.maxsize,step = 1,layout=Layout(height='auto', width = width)) #Spannungspunkt value
messparameter[14,0] = widgets.Checkbox(description = 'Hysterese messen',value = True, indent = True, style = {'description_width': 'initial'},layout=Layout(height='auto', width = width)) #hysterisis value messparameter[14,0] = widgets.Checkbox(description = 'Hysterisis',value = True, indent = True, style = {'description_width': 'initial'},layout=Layout(height='auto', width = width)) #hysterisis value
dict={ dict={
'start':messparameter[1,0], 'start':messparameter[1,0],
...@@ -60,14 +60,14 @@ def messparameter(): ...@@ -60,14 +60,14 @@ def messparameter():
'step':messparameter[5,0], 'step':messparameter[5,0],
'sleep':messparameter[7,0], 'sleep':messparameter[7,0],
'radius':messparameter[9,0], 'radius':messparameter[9,0],
'frequenzpunkt':messparameter[11,0], 'f_point':messparameter[11,0],
'spannungspunkt':messparameter[13,0], 'v_point':messparameter[13,0],
'hysterese':messparameter[14,0] 'hysterisis':messparameter[14,0]
} }
tab = widgets.Tab() tab = widgets.Tab()
tab.children = [messparameter] tab.children = [messparameter]
tab.set_title(0,'Messparameter') tab.set_title(0,'Voltage Parameters')
return tab,dict return tab,dict
...@@ -80,7 +80,7 @@ def sweep_parameter(): ...@@ -80,7 +80,7 @@ def sweep_parameter():
#title #title
#first column #first column
sweep_parameter[0,0] = widgets.Label('Anzahl Frequenzpunkte',layout=Layout(height='auto', width = width)) sweep_parameter[0,0] = widgets.Label('Number of Frequency Points',layout=Layout(height='auto', width = width))
sweep_parameter[1,0] = widgets.BoundedFloatText(value = 4,min =1 ,max = 401,step = 1,layout=Layout(height='auto', width = width)) # Anzahl Frequenzpunkte sweep_parameter[1,0] = widgets.BoundedFloatText(value = 4,min =1 ,max = 401,step = 1,layout=Layout(height='auto', width = width)) # Anzahl Frequenzpunkte
sweep_parameter[2,0] = widgets.Label('f_start (Hz)',layout=Layout(height='auto', width = width)) sweep_parameter[2,0] = widgets.Label('f_start (Hz)',layout=Layout(height='auto', width = width))
sweep_parameter[3,0] = widgets.BoundedFloatText(value=100000,min = 100, max = 40e6,step = 100,layout=Layout(height='auto', width = width)) #start frequency sweep_parameter[3,0] = widgets.BoundedFloatText(value=100000,min = 100, max = 40e6,step = 100,layout=Layout(height='auto', width = width)) #start frequency
...@@ -119,7 +119,7 @@ def sweep_parameter(): ...@@ -119,7 +119,7 @@ def sweep_parameter():
} }
tab = widgets.Tab() tab = widgets.Tab()
tab.children = [sweep_parameter] tab.children = [sweep_parameter]
tab.set_title(0,'Sweep Parameter') tab.set_title(0,'Sweep\nParameters')
return tab,dict return tab,dict
...@@ -130,13 +130,13 @@ def control_panel(): ...@@ -130,13 +130,13 @@ def control_panel():
control_panel[0,0] = widgets.Button(description = "Start Measurement",layout=Layout(height='auto', width = width)) control_panel[0,0] = widgets.Button(description = "Start Measurement",layout=Layout(height='auto', width = width))
control_panel[0,1] = widgets.Button(description = "Start Calibration",layout=Layout(height='auto', width = width)) control_panel[0,1] = widgets.Button(description = "Start Calibration",layout=Layout(height='auto', width = width))
control_panel[1,0] = widgets.Label("U-Punkt",layout=Layout(height='auto', width = width)) control_panel[1,0] = widgets.Label("V-Point",layout=Layout(height='auto', width = width))
control_panel[1,1] = widgets.Label("f-Punkt",layout=Layout(height='auto', width = width)) control_panel[1,1] = widgets.Label("f-Point",layout=Layout(height='auto', width = width))
for j in range(2): for j in range(2):
control_panel[2,j]= widgets.Text(disabled = True,layout=Layout(height='auto', width = width)) control_panel[2,j]= widgets.Text(disabled = True,layout=Layout(height='auto', width = width))
control_panel[3,0] = widgets.Label("Aktuelle Spannung",layout=Layout(height='auto', width = width)) control_panel[3,0] = widgets.Label("Actual Voltage",layout=Layout(height='auto', width = width))
control_panel[4,0] = widgets.Text(disabled = True,layout=Layout(height='auto', width = width)) control_panel[4,0] = widgets.Text(disabled = True,layout=Layout(height='auto', width = width))
control_panel[4,1] = widgets.Checkbox(description = 'Clear Graphs',value = True,indent = False,layout=Layout(height='auto', width = width)) control_panel[4,1] = widgets.Checkbox(description = 'Clear Graphs',value = True,indent = False,layout=Layout(height='auto', width = width))
...@@ -146,9 +146,9 @@ def control_panel(): ...@@ -146,9 +146,9 @@ def control_panel():
clear_graphs = control_panel[4,1] clear_graphs = control_panel[4,1]
view = { view = {
'u-point': control_panel[2,0], 'v-point': control_panel[2,0],
'f-point': control_panel[2,1], 'f-point': control_panel[2,1],
'u-value':control_panel[4,0] 'v-value':control_panel[4,0]
} }
return control_panel,measure,calibrate,clear_graphs,view return control_panel,measure,calibrate,clear_graphs,view
......
%% Cell type:code id:fe623b67-28af-4351-9e76-4381b0db3e0a tags: %% Cell type:code id:fe623b67-28af-4351-9e76-4381b0db3e0a tags:
``` python ``` python
from interface import * from interface import *
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
``` ```
%% Cell type:code id:035405a8-a07b-4f45-b4db-fa4a56c94053 tags: %% Cell type:code id:035405a8-a07b-4f45-b4db-fa4a56c94053 tags:
``` python ``` python
sample,sample_dict = probendaten() sample,sample_dict = probendaten()
``` ```
%% Cell type:code id:ee6f1392-5976-430b-a26b-b594de19011c tags: %% Cell type:code id:ee6f1392-5976-430b-a26b-b594de19011c tags:
``` python ``` python
messparameter,messparameter_dict = messparameter() messparameter,messparameter_dict = messparameter()
``` ```
%% Cell type:code id:77f6a2b9-5837-4144-93ce-1a68d74fe370 tags: %% Cell type:code id:77f6a2b9-5837-4144-93ce-1a68d74fe370 tags:
``` python ``` python
sweep_parameter,sweep_parameter_dict = sweep_parameter() sweep_parameter,sweep_parameter_dict = sweep_parameter()
``` ```
%% Cell type:code id:f1f412ce-73c2-4a73-8f22-b69f58681ffa tags: %% Cell type:code id:f1f412ce-73c2-4a73-8f22-b69f58681ffa tags:
``` python ``` python
control_panel,measure,calibrate,clear_graphs,view=control_panel() control_panel,measure,calibrate,clear_graphs,view=control_panel()
``` ```
%% Cell type:code id:dcfbf35d-fcfa-48d4-a1f5-583ea1256618 tags: %% Cell type:code id:dcfbf35d-fcfa-48d4-a1f5-583ea1256618 tags:
``` python ``` python
out = widgets.Output() out = widgets.Output()
``` ```
%% Cell type:code id:65fd57be-5b4a-4247-9e71-8c799c05ff24 tags: %% Cell type:code id:65fd57be-5b4a-4247-9e71-8c799c05ff24 tags:
``` python ``` python
hbox1 = widgets.HBox([sample,control_panel]) hbox1 = widgets.HBox([sample,control_panel])
display(hbox1) display(hbox1)
hbox2=widgets.HBox([messparameter,sweep_parameter]) hbox2=widgets.HBox([messparameter,sweep_parameter])
display(hbox2) display(hbox2)
display(out) display(out)
with out: with out:
print("Hello World!") print("Hello World!")
``` ```
%% Output %% Output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment