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

updated the interface

parent 67df3a3b
Branches
No related tags found
No related merge requests found
......@@ -4,39 +4,9 @@ from measurements_new import *
# Create the grids
#some layout and sampling configurations
#create the information grid
style = {'description_width': 'initial'}
sample_information=widgets.Label("Sample Information",layout=Layout(height='auto', width='auto'))
sample_information.style.font_weight='bold'
information_grid=GridspecLayout(2,4)
#first and third column
#first column
information_grid[0,0]=widgets.Label("Processing-Nr.",layout=Layout(height='auto', width='auto'))
information_grid[1,0]=widgets.Label("Sample",layout=Layout(height='auto', width='auto'))
#information_grid[2,0]=widgets.Label("Piece",layout=Layout(height='auto', width='auto'))
#last column
information_grid[0,3]=widgets.Label("Field(XYY)",layout=Layout(height='auto', width='auto'))
information_grid[1,3]=widgets.Label("Device",layout=Layout(height='auto', width='auto'))
#information_grid[2,3]=widgets.Label("Testlevel",layout=Layout(height='auto', width='auto'))
#columns 2 and 3
for i in range(2):
for j in range(1,3):
information_grid[i,j]=widgets.Text(layout=Layout(height='auto', width='auto'))
proccesing_number = information_grid[0,1]
sample = information_grid[1,1]
field = information_grid[0,2]
transistor = information_grid[1,2]
display(sample_information)
display(information_grid)
print()
sample = information_grid()
###end of sampling information#######################################
test_contacts=widgets.Checkbox(description = "Test of the Contacts",value = True,indent = False)
......@@ -69,10 +39,8 @@ button = widgets.Button(description ='Start Measurement')
output = widgets.Output()
all_widgets =[button,transfer_check,integration_transfer,output_check,integration_output,gatediode_check,integration_gatediode,test_contacts]
for i in range(2):
for j in range(1,3):
all_widgets.append(information_grid[i,j])
add_widgets_to_list(sample,all_widgets)
add_widgets_to_list(Vds_transfer,all_widgets)
add_widgets_to_list(Vgs_transfer,all_widgets)
add_widgets_to_list(Vds_output,all_widgets)
......
import ipywidgets as widgets
from ipywidgets import GridspecLayout,Layout
from IPython.display import clear_output
import sys
def header(name):
......@@ -92,3 +93,48 @@ def secondary(name,start,step,stop,comp):
print()
return parameters
def information_grid():
sample_information=widgets.Label("Sample Information",layout=Layout(height='auto', width='auto'))
sample_information.style.font_weight='bold'
information_grid=GridspecLayout(3,4)
#first and third column
#first column
information_grid[0,0]=widgets.Label("Processing-Nr.",layout=Layout(height='auto', width='auto'))
information_grid[1,0]=widgets.Label("Sample",layout=Layout(height='auto', width='auto'))
#information_grid[2,0]=widgets.Label("Piece",layout=Layout(height='auto', width='auto'))
#last column
information_grid[0,3]=widgets.Label("Field(XYY)",layout=Layout(height='auto', width='auto'))
information_grid[1,3]=widgets.Label("Device",layout=Layout(height='auto', width='auto'))
#information_grid[2,3]=widgets.Label("Testlevel",layout=Layout(height='auto', width='auto'))
#columns 2 and 3
for i in range(2):
for j in range(1,3):
information_grid[i,j]=widgets.Text(layout=Layout(height='auto', width='auto'))
# last line with normalization
information_grid[2,0] = widgets.Label("Device Width(µm)",layout=Layout(height='auto', width='auto'))
information_grid[2,3] = widgets.Label("Normalization",layout=Layout(height='auto', width='auto'))
information_grid[2,1] = widgets.BoundedFloatText(value=100,min=sys.float_info.min,max=sys.float_info.max,step=1,layout=Layout(height='auto', width='auto'))
information_grid[2,2] = widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height='auto', width='auto'))#mind the gap
display(sample_information)
display(information_grid)
print()
information = {
'processing_number': information_grid[0,1],
'sample' : information_grid[1,1],
'field': information_grid[0,2],
'device':information_grid[1,2],
'width': information_grid[2,1],
'normalization': information_grid[2,2]
}
return information
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment