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
3bfc024c
Commit
3bfc024c
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
interface mockup for ini file test
parent
bc7c77f2
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.ipynb
+14
-14
14 additions, 14 deletions
hp4155/ADU/ADU.ipynb
hp4155/ADU/ini_file_test.ipynb
+351
-0
351 additions, 0 deletions
hp4155/ADU/ini_file_test.ipynb
with
365 additions
and
14 deletions
hp4155/ADU/ADU.ipynb
+
14
−
14
View file @
3bfc024c
...
...
@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
880cfcfd01ce48ddaf8510354ad88e28
",
"model_id": "
f3826d64680d4eff885e090ea3cfa349
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
66f9d0be936047d0a2d1d27f415c2708
",
"model_id": "
d7695f37353c466191e76d35b1684bf9
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -44,7 +44,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
4500a53acf28486da27ed5ea6aeac220
",
"model_id": "
6fa6e2c8c94343149c97a33bf1e22769
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
93a46f9d79f7471091a0f9c41cfcf07
b",
"model_id": "
8ae54d043b7947388744ca873f171f2
b",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -86,7 +86,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
fd8c158c3e69470492822af75b126413
",
"model_id": "
649c86db2a1b463cb4ea4e1d4197f878
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -107,7 +107,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
a6ac16c1104e4366be9501699730f0d0
",
"model_id": "
395f6853491f452bab2aa290653ba727
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -130,7 +130,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
09302f75408847f9a18503c997665079
",
"model_id": "
70f3b174f8c4430ea07e8e1a62db98c6
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -151,7 +151,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
272ade3a81824073a4c3f145409e091e
",
"model_id": "
f7f3f5c1fb024492a46d49f8f5342fd7
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -172,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
7bae57da28114829870a953fae216e21
",
"model_id": "
aa54f252dd004bc28376f5ef466bd74e
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -195,7 +195,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
ea8d96e4a02744df9c8eebed86623e5c
",
"model_id": "
ffe6d89f245c4598a1301b025b303759
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -216,7 +216,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
4bd4caeda283448783794cf90ea68223
",
"model_id": "
5c60d5414f2542898b2dcafb259d12cb
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -239,7 +239,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
0ac1e57ecd10426982db3814844bcb4d
",
"model_id": "
75d64acbf287430da2b771f684087550
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -253,7 +253,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
df161623abe54d039ea8ed1dfb720272
",
"model_id": "
911135d5a1074352ade1f9c8bae1d2a4
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -271,7 +271,7 @@
},
{
"cell_type": "code",
"execution_count":
3
,
"execution_count":
2
,
"id": "3da7c505-85a3-45e9-853e-86a9c9e30569",
"metadata": {},
"outputs": [
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/ini_file_test.ipynb
0 → 100644
+
351
−
0
View file @
3bfc024c
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "910776b3-e909-40e6-88b4-586ff7e48285",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4c88ee3b14bc49c59af74d95cb6e16bf",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Label(value='Sample Information', layout=Layout(height='auto', width='auto'), style=LabelStyle(font_weight='bo…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ce68e51a363c4df88f42610abf96b448",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Processing-Nr.', layout=Layout(grid_area='widget001', height='auto', wid…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "323da9aff8924862ab0a9f4d3ccd4efe",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Checkbox(value=True, description='Test of the Contacts', indent=False)"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2e11f99b50564140962a646a5299dfa6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Checkbox(value=True, description='Transfer Curve', indent=False, layout=Layout(grid_a…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bc457564954f46d89533358a39a63fd0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Vds', layout=Layout(grid_area='widget001', height='auto', width='auto'))…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "dad037400f294475a103b3ebebfdb25c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Vgs', layout=Layout(grid_area='widget001', height='auto', width='auto'))…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f4f924d0c374482f855732ae1137917d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Checkbox(value=True, description='Output Curve', indent=False, layout=Layout(grid_are…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "03b337589e574fd2accea5749c767cbd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Vds', layout=Layout(grid_area='widget001', height='auto', width='auto'))…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e5834ce8acd344bf818853acc0568a27",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Vgs', layout=Layout(grid_area='widget001', height='auto', width='auto'))…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "00aab9a6098844319a1f2864073cb8ba",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Checkbox(value=True, description='Gatediode', indent=False, layout=Layout(grid_area='…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7c56546f853a413899efe5a3eb2cefac",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Vgs', layout=Layout(grid_area='widget001', height='auto', width='auto'))…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "27af3e6ad8cd41458cea061dcd3d8559",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(description='Start Measurement', style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "837588120c2240418ca0501a70577478",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from interface import *\n",
"from help import *\n",
"\n",
"\n",
"# Create the grids\n",
"#create the information grid\n",
"style = {'description_width': 'initial'}\n",
"sample = information_grid()\n",
"\n",
"###end of sampling information#######################################\n",
"test_contacts=widgets.Checkbox(description = \"Test of the Contacts\",value = True,indent = False)\n",
"display(test_contacts)\n",
"print()\n",
"\n",
"#transfer\n",
"transfer_check,integration_transfer = header('Transfer Curve')\n",
"Vds_transfer = secondary('Vds',0.1,0.45,1,0.1)\n",
"Vgs_transfer = primary('Vgs',2,-0.05,-8,0.01)\n",
"print()\n",
"print()\n",
"\n",
"#output\n",
"output_check,integration_output = header('Output Curve')\n",
"Vds_output = primary('Vds',0,0.1,15,0.1)\n",
"Vgs_output = secondary('Vgs',2,-1,-8,0.01)\n",
"print()\n",
"print()\n",
"\n",
"#GateDiodde\n",
"gatediode_check,integration_gatediode=header('Gatediode')\n",
"Vgs_gatediode=primary('Vgs',-8,0.05,2,0.02)\n",
"print()\n",
"print()\n",
"\n",
"\n",
"# the button\n",
"button = widgets.Button(description ='Start Measurement')\n",
"output = widgets.Output()\n",
"\n",
"all_widgets =[button,transfer_check,integration_transfer,output_check,integration_output,gatediode_check,integration_gatediode,test_contacts]\n",
"\n",
"add_widgets_to_list(sample,all_widgets)\n",
"add_widgets_to_list(Vds_transfer,all_widgets)\n",
"add_widgets_to_list(Vgs_transfer,all_widgets)\n",
"add_widgets_to_list(Vds_output,all_widgets)\n",
"add_widgets_to_list(Vgs_output,all_widgets)\n",
"add_widgets_to_list(Vgs_gatediode,all_widgets)\n",
"\n",
"\n",
"display(button,output)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c3ff3040-e3fa-4ec6-a02b-81c3f4ec7f35",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
%% Cell type:code id:910776b3-e909-40e6-88b4-586ff7e48285 tags:
```
python
from
interface
import
*
from
help
import
*
# Create the grids
#create the information grid
style
=
{
'
description_width
'
:
'
initial
'
}
sample
=
information_grid
()
###end of sampling information#######################################
test_contacts
=
widgets
.
Checkbox
(
description
=
"
Test of the Contacts
"
,
value
=
True
,
indent
=
False
)
display
(
test_contacts
)
print
()
#transfer
transfer_check
,
integration_transfer
=
header
(
'
Transfer Curve
'
)
Vds_transfer
=
secondary
(
'
Vds
'
,
0.1
,
0.45
,
1
,
0.1
)
Vgs_transfer
=
primary
(
'
Vgs
'
,
2
,
-
0.05
,
-
8
,
0.01
)
print
()
print
()
#output
output_check
,
integration_output
=
header
(
'
Output Curve
'
)
Vds_output
=
primary
(
'
Vds
'
,
0
,
0.1
,
15
,
0.1
)
Vgs_output
=
secondary
(
'
Vgs
'
,
2
,
-
1
,
-
8
,
0.01
)
print
()
print
()
#GateDiodde
gatediode_check
,
integration_gatediode
=
header
(
'
Gatediode
'
)
Vgs_gatediode
=
primary
(
'
Vgs
'
,
-
8
,
0.05
,
2
,
0.02
)
print
()
print
()
# the button
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
]
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
)
add_widgets_to_list
(
Vgs_output
,
all_widgets
)
add_widgets_to_list
(
Vgs_gatediode
,
all_widgets
)
display
(
button
,
output
)
```
%% Output
%% Cell type:code id:c3ff3040-e3fa-4ec6-a02b-81c3f4ec7f35 tags:
```
python
```
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