Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
37c15c0d
Commit
37c15c0d
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
updated the interface
parent
67df3a3b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hp4155/ADU/ADU.py
+3
-35
3 additions, 35 deletions
hp4155/ADU/ADU.py
hp4155/ADU/interface.py
+46
-0
46 additions, 0 deletions
hp4155/ADU/interface.py
with
49 additions
and
35 deletions
hp4155/ADU/ADU.py
+
3
−
35
View file @
37c15c0d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/interface.py
+
46
−
0
View file @
37c15c0d
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment