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
dbf9145a
Commit
dbf9145a
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
interface part 3
parent
2d7cb1d5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
hp4155/ADU/ADU.ipynb
+40
-12
40 additions, 12 deletions
hp4155/ADU/ADU.ipynb
hp4155/ADU/ADU.py
+6
-0
6 additions, 0 deletions
hp4155/ADU/ADU.py
hp4155/ADU/interface.py
+18
-3
18 additions, 3 deletions
hp4155/ADU/interface.py
with
64 additions
and
15 deletions
hp4155/ADU/ADU.ipynb
+
40
−
12
View file @
dbf9145a
...
...
@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
37b0efa98e9e4fb4acae060c0eededeb
",
"model_id": "
5fd2c732c6734a769d733ab2c8cf1c78
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
21771020a5c2409ab10df8c70c9a9bd0
",
"model_id": "
094c272a777d488ebfc4d67bd2af0ef8
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -44,7 +44,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
d2be1e72bec6429bbdfbf446c352be7b
",
"model_id": "
baab40bc68f14b6b874f1e29e462b991
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
410ea58ee1a342049b3fd5942d25b38e
",
"model_id": "
d79d03a1b64649c38042d7909fd8a993
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -86,7 +86,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
9adba6bbea4748149774167a7c812895
",
"model_id": "
32f8a7ee251f4b3ea24fd1666f3d5e99
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -107,7 +107,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
0100b27959ea473f9f3489100a47f79
f",
"model_id": "
f894e3057a604602984555a9fdd809f
f",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -130,7 +130,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
c24baf58eb07423b89751faeaeecac66
",
"model_id": "
d40ac20bdc1244d993c9429b1c6ab9cc
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -151,7 +151,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
9142b498a33847e7a366a335c25c5bd2
",
"model_id": "
57feb2df5fb74bdfaee465001d8428b1
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -172,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
f2b647dde31147e4b01c8c48f2d95cb2
",
"model_id": "
bf65c5beeccd4e30b4c07533b6005ae4
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -195,7 +195,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
25098295f7ff421b836282e9d92ed44b
",
"model_id": "
3b4ca0d640c44113baa6fd3980ed0e68
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -216,7 +216,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
6da9ce2255f3492f9ddbcbeb55217d17
",
"model_id": "
24aa2fa1732343caac6a409aa5cf988f
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -235,6 +235,34 @@
"\n",
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "af741e77a2c34f6da8f80176c1d7b521",
"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": "30d646b9df1a4c7ab01a6ee6d0c0b3e5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
...
...
@@ -244,7 +272,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
a4bb888c-4d77-4f1e-8722-601c15e0bb6d
",
"id": "
e95955c1-f401-4e5d-ba89-9ce1ef5938ef
",
"metadata": {},
"outputs": [],
"source": []
...
...
%% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags:
```
python
%
run
ADU
.
py
```
%% Output
%% Cell type:code id:a4bb888c-4d77-4f1e-8722-601c15e0bb6d tags:
%% Cell type:code id:e95955c1-f401-4e5d-ba89-9ce1ef5938ef tags:
```
python
```
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/ADU.py
+
6
−
0
View file @
dbf9145a
...
...
@@ -56,4 +56,10 @@ print()
print
()
# the button
button
=
widgets
.
Button
(
description
=
'
Start Measurement
'
)
output
=
widgets
.
Output
()
display
(
button
,
output
)
This diff is collapsed.
Click to expand it.
hp4155/ADU/interface.py
+
18
−
3
View file @
dbf9145a
...
...
@@ -41,9 +41,17 @@ def primary(name,start,step,stop,comp):
primary_grid
[
3
,
0
]
=
widgets
.
BoundedFloatText
(
value
=
comp
,
min
=-
0.1
,
max
=
0.1
,
step
=
0.01
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
primary_grid
[
3
,
2
]
=
widgets
.
Dropdown
(
options
=
[
'
SINGle
'
,
'
DOUBle
'
],
value
=
'
SINGle
'
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
#mind the gap
parameters
=
{
'
start
'
:
primary_grid
[
1
,
0
],
'
step
'
:
primary_grid
[
1
,
1
],
'
stop
'
:
primary_grid
[
1
,
2
],
'
comp
'
:
primary_grid
[
3
,
0
],
'
hysterisis
'
:
primary_grid
[
3
,
2
]
}
display
(
primary_grid
)
print
()
return
p
rimary_grid
return
p
arameters
def
secondary
(
name
,
start
,
step
,
stop
,
comp
):
...
...
@@ -68,9 +76,16 @@ def secondary(name,start,step,stop,comp):
secondary_grid
[
3
,
0
]
=
widgets
.
BoundedFloatText
(
value
=
comp
,
min
=-
0.1
,
max
=
0.1
,
step
=
0.01
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
secondary_grid
[
3
,
2
]
=
widgets
.
BoundedFloatText
(
value
=
0
,
min
=
0
,
max
=
100
,
step
=
0.1
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
#mind the gap
parameters
=
{
'
start
'
:
secondary_grid
[
1
,
0
],
'
step
'
:
secondary_grid
[
1
,
1
],
'
stop
'
:
secondary_grid
[
1
,
2
],
'
comp
'
:
secondary_grid
[
3
,
0
],
'
pcomp
'
:
secondary_grid
[
3
,
2
]
}
display
(
secondary_grid
)
print
()
return
secondary
return
parameters
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