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
7c6a3900
Commit
7c6a3900
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
playing with the interface
parent
c8742b4c
No related branches found
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_interface.ipynb
+14
-14
14 additions, 14 deletions
hp4155/ADU/ADU_interface.ipynb
hp4155/ADU/lib/interface.py
+11
-10
11 additions, 10 deletions
hp4155/ADU/lib/interface.py
with
25 additions
and
24 deletions
hp4155/ADU/ADU_interface.ipynb
+
14
−
14
View file @
7c6a3900
...
...
@@ -9,12 +9,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
0d67fe3bdaac4000a5e38a957e5696d7
",
"model_id": "
a58e94495b5249539c2a5bccc0f4ff51
",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Label(value='Sample Information', layout=Layout(height='auto', width='
auto
'), style=LabelStyle(font_weight='bo…"
"Label(value='Sample Information', layout=Layout(height='auto', width='
50%
'), style=LabelStyle(font_weight='bo
l
…"
]
},
"metadata": {},
...
...
@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "59
791888b4d04d4494b5fa940e5555f6
",
"model_id": "
a
59
cc4461bde44708f8be132f5943963
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -44,7 +44,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
fc3ec758e3e649c8b7efce8e0360f2c5
",
"model_id": "
1b7b93c627d34a47bc64c257476418c9
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
ff9aedf0b124458caa99ca30bceda374
",
"model_id": "
06928453444a493f918b37adb8381a72
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -86,7 +86,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
61105c6a020042638cb0d7dfaa50eae6
",
"model_id": "
48f5b3b2cde34e8e95e9756c5497a129
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -107,7 +107,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
178d2e85b8354c0d89cb097e12c7ef6f
",
"model_id": "
a8ffa4d37584404ebca09686e3f87960
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -130,7 +130,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
11
c2
1
04
8d50f4c15bde11a87fea5355a
",
"model_id": "
075200f0
c2
2
04
94bb8608b42ac3259a3
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -151,7 +151,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
9bb79518da1b42cd85f33e80f7ce129d
",
"model_id": "
78eabd8865794497afe4b3821cb952e7
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -172,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
97ed121b69504810ac0dd70a1c1d42a
c",
"model_id": "
e0332e08a4934b45a9a3cb9f1e0fb83
c",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -195,7 +195,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
c1528d2c0e3747eea404311447d65856
",
"model_id": "
1334ee544cb04eb1809d3ad940cc8470
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -216,7 +216,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
30598dcd2bd34b069c48260cdae82a8
f",
"model_id": "
af552ca7444f4aa6b95045732742ef1
f",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -239,7 +239,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
d44607146b6e48548ba4ed4e20e7b115
",
"model_id": "
b0a9bd2f4c294f00b7b5e9147db13042
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -253,7 +253,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
724045fe8ed94a2e853026625c619be7
",
"model_id": "
fc186725aa384a93be294e54f4c0dd93
",
"version_major": 2,
"version_minor": 0
},
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/lib/interface.py
+
11
−
10
View file @
7c6a3900
...
...
@@ -3,6 +3,7 @@ from ipywidgets import GridspecLayout,Layout
from
IPython.display
import
clear_output
import
sys
width
=
"
90%
"
def
header
(
name
):
header_grid
=
GridspecLayout
(
1
,
3
)
...
...
@@ -94,35 +95,35 @@ def secondary(name,start,step,stop,comp):
return
parameters
def
information_grid
():
sample_information
=
widgets
.
Label
(
"
Sample Information
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
sample_information
=
widgets
.
Label
(
"
Sample Information
"
,
layout
=
Layout
(
height
=
'
auto
'
,
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
=
'
auto
'
))
information_grid
[
1
,
0
]
=
widgets
.
Label
(
"
Sample
"
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
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[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
[
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[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
'
))
information_grid
[
i
,
j
]
=
widgets
.
Text
(
layout
=
Layout
(
height
=
'
auto
'
,
width
=
width
))
# 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
,
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
,
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
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
display
(
sample_information
)
display
(
information_grid
)
...
...
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