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
bdb0cb84
Commit
bdb0cb84
authored
Jun 18, 2024
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
changed units in the dataframes(ADU)
parent
b170e5ee
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_interface.ipynb
+6
-6
6 additions, 6 deletions
hp4155/ADU/ADU_interface.ipynb
hp4155/ADU/ADU_version_2.py
+12
-12
12 additions, 12 deletions
hp4155/ADU/ADU_version_2.py
with
18 additions
and
18 deletions
hp4155/ADU/ADU_interface.ipynb
+
6
−
6
View file @
bdb0cb84
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
91b007d1c3f34b39b4bc4d4fc430fcbf
",
"model_id": "
3e2d3d3b5277494f85271c692e649ebc
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
a989b58d9fa44eb0827c087afd0c5efe
",
"model_id": "
2f2b9a689ac64957add1c74440771c10
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
5fb4ecee398f4c0ebff2e7b679b525fe
",
"model_id": "
1831791853fb48518c181250f896455b
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
6a08c9595e524587a810c29bb75c713e
",
"model_id": "
7a1a2ec17ed748459605d0f825114470
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
fde2af87a1934f37b1ec1d7bf43a2dff
",
"model_id": "
589693bccaf84ff1b7a20daf6d9a8b60
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
1f8f0870133d44468fd31fa1ab9434cf
",
"model_id": "
6d8bbd4db846424787ee5f74e19ea1b3
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/ADU_version_2.py
+
12
−
12
View file @
bdb0cb84
...
@@ -139,14 +139,14 @@ def on_start_clicked(b):
...
@@ -139,14 +139,14 @@ def on_start_clicked(b):
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
gm_S
=
np
.
array
(
gm
)
/
normalization_factor
(
width
)
gm_S
=
np
.
array
(
gm
)
/
normalization_factor
(
width
)
#plot results
#plot results
clear_output
()
#
clear_output()
plot_transfer
(
Vgs
,
Idmm
,
gm
,
points
,
norm_unit
)
plot_transfer
(
Vgs
,
Idmm
,
gm
,
points
,
norm_unit
)
#save results
#save results
if
norm_unit
==
'
mA/mm
'
:
if
norm_unit
==
'
mA/mm
'
:
header
=
[
'
VGS
(V)
'
,
'
VDS
(V)
'
,
'
ID
mm(mA/mm)
'
,
"
IGmm(mA/mm)
"
,
'
gm(mS/mm)
'
,
"
ABS(
IDmm
)(
mA/mm
)
"
,
"
ABS(
IGmm
)(
mA/mm
)
"
,
"
ID(A)
"
,
"
IG(A)
"
,
"
gm(S)
"
]
header
=
[
'
VGS
/V
'
,
'
VDS
/V
'
,
'
ID
/A
'
,
"
IG/A
"
,
'
gm/S
'
,
"
IDmm
/
mA/mm
"
,
"
IGmm
/
mA/mm
"
,
"
gm/mS/mm
"
]
else
:
else
:
header
=
[
'
VGS
(V)
'
,
'
VDS
(V)
'
,
'
ID
mm(uA/um)
'
,
"
IGmm(uA/um)
"
,
'
gm(uS/um)
'
,
"
ABS(
IDmm
)(
uA/um
)
"
,
"
ABS(
IGmm
)(
uA/um
)
"
,
"
ID(A)
"
,
"
IG(A)
"
,
"
gm(S)
"
]
header
=
[
'
VGS
/V
'
,
'
VDS
/V
'
,
'
ID
/A
'
,
"
IG/A
"
,
'
gm/S
'
,
"
IDmm
/
uA/um
"
,
"
IGmm
/
uA/um
"
,
"
gm/uS/um
"
]
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Vds
,
header
[
2
]:
Id
mm
,
header
[
3
]:
Ig
mm
,
header
[
4
]:
gm
,
header
[
5
]:
np
.
abs
(
Idmm
)
,
header
[
6
]:
np
.
abs
(
Igmm
)
,
header
[
7
]:
Id
,
header
[
8
]:
Ig
,
header
[
9
]:
gm_S
}
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Vds
,
header
[
2
]:
Id
,
header
[
3
]:
Ig
,
header
[
4
]:
gm
_S
,
header
[
5
]:
Idmm
,
header
[
6
]:
Igmm
,
header
[
7
]:
gm
}
df
=
pd
.
DataFrame
(
data
)
df
=
pd
.
DataFrame
(
data
)
#write to file
#write to file
...
@@ -203,15 +203,15 @@ def on_start_clicked(b):
...
@@ -203,15 +203,15 @@ def on_start_clicked(b):
Id
=
np
.
array
(
Idmm
)
/
normalization_factor
(
width
)
Id
=
np
.
array
(
Idmm
)
/
normalization_factor
(
width
)
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
#plot results
#plot results
clear_output
()
#
clear_output()
plot_output
(
Vds
,
Idmm
,
Igmm
,
points
,
norm_unit
)
plot_output
(
Vds
,
Idmm
,
Igmm
,
points
,
norm_unit
)
#save results
#save results
if
norm_unit
==
'
mA/mm
'
:
if
norm_unit
==
'
mA/mm
'
:
header
=
[
'
VGS
(V)
'
,
'
VDS
(V)
'
,
'
ID
mm(mA/mm)
'
,
"
IGmm(mA/mm)
"
,
"
ABS(
IDmm
)(
mA/mm
)
"
,
"
ABS(
IGmm
)(
mA/mm
)
"
,
"
ID(A)
"
,
"
IG(A)
"
]
header
=
[
'
VGS
/V
'
,
'
VDS
/V
'
,
"
ID
/A
"
,
"
IG/A
"
,
'
IDmm
/
mA/mm
'
,
"
IGmm
/
mA/mm
"
]
else
:
else
:
header
=
[
'
VGS
(V)
'
,
'
VDS
(V)
'
,
'
ID
mm(uA/um)
'
,
"
IGmm(uA/um)
"
,
"
ABS(
IDmm
)(
uA/um
)
"
,
"
ABS(
IGmm
)(
uA/um
)
"
,
"
ID(A)
"
,
"
IG(A)
"
]
header
=
[
'
VGS
/V
'
,
'
VDS
/V
'
,
"
ID
/A
"
,
"
IG/A
"
,
'
IDmm
/
uA/um
'
,
"
IGmm
/
uA/um
"
]
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Vds
,
header
[
2
]:
Id
mm
,
header
[
3
]:
Ig
mm
,
header
[
4
]:
np
.
abs
(
Idmm
)
,
header
[
5
]:
np
.
abs
(
Igmm
),
header
[
6
]:
Id
,
header
[
7
]:
Ig
}
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Vds
,
header
[
2
]:
Id
,
header
[
3
]:
Ig
,
header
[
4
]:
Idmm
,
header
[
5
]:
Ig
mm
}
df
=
pd
.
DataFrame
(
data
)
df
=
pd
.
DataFrame
(
data
)
#write to file
#write to file
...
@@ -248,15 +248,15 @@ def on_start_clicked(b):
...
@@ -248,15 +248,15 @@ def on_start_clicked(b):
#execute measurement
#execute measurement
Vgs
,
Igmm
,
ABSIgmm
=
Gatediode
(
smu1
,
smu3
,
smu4
,
integration_gatediode
.
value
,
norm
,
device
)
Vgs
,
Igmm
,
ABSIgmm
=
Gatediode
(
smu1
,
smu3
,
smu4
,
integration_gatediode
.
value
,
norm
,
device
)
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
Ig
=
np
.
array
(
Igmm
)
/
normalization_factor
(
width
)
clear_output
()
#
clear_output()
plot_gatediode
(
Vgs
,
Igmm
,
norm_unit
)
plot_gatediode
(
Vgs
,
Igmm
,
norm_unit
)
#save results
#save results
if
norm_unit
==
'
mA/mm
'
:
if
norm_unit
==
'
mA/mm
'
:
header
=
[
'
VGS
(V)
'
,
'
IG
mm(mA/mm)
'
,
"
ABS(
IGmm
)(
mA/mm
)
"
,
'
IG(A)
'
]
header
=
[
'
VGS
/V
'
,
'
IG
/A
'
,
'
IGmm
/
mA/mm
'
]
else
:
else
:
header
=
[
'
VGS
(V)
'
,
'
IG
mm(uA/um)
'
,
"
ABS(
IGmm
)(
uA/um
)
"
,
'
IG(A)
'
]
header
=
[
'
VGS
/V
'
,
'
IG
/A
'
,
'
IGmm
/
uA/um
'
]
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Ig
mm
,
header
[
2
]:
ABS
Igmm
,
header
[
3
]:
Ig
}
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Ig
,
header
[
2
]:
Igmm
}
df
=
pd
.
DataFrame
(
data
)
df
=
pd
.
DataFrame
(
data
)
filename
=
f
"
{
sample
[
'
sample
'
].
value
}
_
{
sample
[
'
field
'
].
value
}
_
{
sample
[
'
device
'
].
value
}
_D.txt
"
filename
=
f
"
{
sample
[
'
sample
'
].
value
}
_
{
sample
[
'
field
'
].
value
}
_
{
sample
[
'
device
'
].
value
}
_D.txt
"
...
...
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