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

solved problem with the sample information

parent 7c6a3900
Branches
No related tags found
No related merge requests found
{"data":{"layout-restorer:data":{"main":{"dock":{"type":"tab-area","currentIndex":0,"widgets":["notebook:ADU_interface.ipynb","editor:lib/interface.py","editor:ADU.py"]},"current":"notebook:ADU_interface.ipynb"},"down":{"size":0,"widgets":[]},"left":{"collapsed":false,"visible":true,"current":"filebrowser","widgets":["filebrowser","running-sessions","@jupyterlab/toc:plugin","extensionmanager.main-view"]},"right":{"collapsed":true,"visible":true,"widgets":["jp-property-inspector","debugger-sidebar"]},"relativeSizes":[0.14156796390298929,0.8584320360970107,0],"top":{"simpleVisibility":true}},"notebook:ADU_interface.ipynb":{"data":{"path":"ADU_interface.ipynb","factory":"Notebook"}},"file-browser-filebrowser:cwd":{"path":""},"editor:lib/interface.py":{"data":{"path":"lib/interface.py","factory":"Editor"}},"editor:ADU.py":{"data":{"path":"ADU.py","factory":"Editor"}}},"metadata":{"id":"default"}}
\ No newline at end of file
......@@ -12,7 +12,7 @@ import configparser
# Create the grids
#create the information grid
style = {'description_width': 'initial'}
sample = information_grid()
sample = information_box_new()
###end of sampling information#######################################
test_contacts=widgets.Checkbox(description = "Test of the Contacts",value = True,indent = False)
......
%% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags:
``` python
%run ADU.py
```
%% Output
%% Cell type:code id:4cc299fe-beda-4863-9e0f-5a6d975c932d tags:
%% Cell type:code id:e67b3143-40bf-49b6-96d7-d065b72fb37a tags:
``` python
```
......
......@@ -3,8 +3,9 @@ from ipywidgets import GridspecLayout,Layout
from IPython.display import clear_output
import sys
width = "90%"
width = "50%"
height = 'auto'
style = {'description_width': 'initial'}
def header(name):
header_grid = GridspecLayout(1,3)
style = {'description_width': 'initial'}
......@@ -95,35 +96,35 @@ def secondary(name,start,step,stop,comp):
return parameters
def information_grid():
sample_information=widgets.Label("Sample Information",layout=Layout(height='auto', width='50%'))
sample_information=widgets.Label("Sample Information",layout=Layout(height=height, width='50%'))
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=width))
information_grid[1,0]=widgets.Label("Sample",layout=Layout(height='auto', width=width))
information_grid[0,0]=widgets.Label("Processing-Nr.",layout=Layout(height=height, width=width))
information_grid[1,0]=widgets.Label("Sample",layout=Layout(height=height, width=width))
#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=width))
information_grid[1,3]=widgets.Label("Device",layout=Layout(height='auto', width=width))
information_grid[0,3]=widgets.Label("Field(XYY)",layout=Layout(height=height, width=width))
information_grid[1,3]=widgets.Label("Device",layout=Layout(height=height, width=width))
#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=width))
information_grid[i,j]=widgets.Text(layout=Layout(height=height, width=width))
# last line with normalization
information_grid[2,0] = widgets.Label("Device Width(µm)",layout=Layout(height='auto', width=width))
information_grid[2,3] = widgets.Label("Normalization",layout=Layout(height='auto', width=width))
information_grid[2,0] = widgets.Label("Device Width(µm)",layout=Layout(height=height, width=width))
information_grid[2,3] = widgets.Label("Normalization",layout=Layout(height=height, width=width))
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=width))
information_grid[2,2] = widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height='auto', width=width))#mind the gap
information_grid[2,1] = widgets.BoundedFloatText(value=100,min=sys.float_info.min,max=sys.float_info.max,step=1,layout=Layout(height=height, width=width))
information_grid[2,2] = widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height=height, width=width))#mind the gap
display(sample_information)
display(information_grid)
......@@ -139,3 +140,42 @@ def information_grid():
}
return information
def information_box_new():
sample_information=widgets.Label("Sample Information",layout=Layout(height=height, width='50%'))
sample_information.style.font_weight='bold'
information_grid=GridspecLayout(3,2)
for i in range(3):
for j in range(2):
if i ==2 and j == 1:
information_grid[i,j]=widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height=height, width=width))#mind the gap
else:
information_grid[i,j]=widgets.Text(layout=Layout(height=height, width=width))
information_grid[0,0].description = "Processing-Nr:"
information_grid[1,0].description = "Sample:"
information_grid[2,0].description = "Device Width(µm):"
information_grid[0,1].description = "Field(XYY):"
information_grid[1,1].description = "Device:"
information_grid[2,1].description = "Normalization:"
for i in range(3):
for j in range(2):
information_grid[i,j].style = style
display(sample_information)
display(information_grid)
print()
information = {
'processing_number': information_grid[0,0],
'sample' : information_grid[1,0],
'field': information_grid[0,1],
'device':information_grid[1,1],
'width': information_grid[2,0],
'normalization': information_grid[2,1]
}
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