Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PeakOTron
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UHHDetLab
SiPM
PeakOTron
Commits
ace81eaf
Commit
ace81eaf
authored
6 months ago
by
Katjana Neumann
Browse files
Options
Downloads
Patches
Plain Diff
added integral length in the h5 file.
parent
963c0058
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
user/sumlab_auto.py
+4
-2
4 additions, 2 deletions
user/sumlab_auto.py
with
4 additions
and
2 deletions
user/sumlab_auto.py
+
4
−
2
View file @
ace81eaf
...
...
@@ -71,7 +71,7 @@ print("=======================================\033[0m")
files_to_fit
=
sorted
(
files_to_fit
,
key
=
lambda
x
:
x
[
0
])
G
=
[];
d_G
=
[];
G_prefit
=
[];
d_G_prefit
=
[]
V_bias
=
[]
t_gates
=
[]
for
i
,
(
file
,
path
)
in
enumerate
(
files_to_fit
):
V
=
float
(
file
.
split
(
'
deg
'
)[
1
].
split
(
'
V
'
)[
0
].
replace
(
'
_
'
,
'
.
'
))
if
'
ns
'
in
file
:
...
...
@@ -81,7 +81,7 @@ for i, (file, path) in enumerate(files_to_fit):
#V = float(items[2].replace('V', '').replace('p', '.'))
# f_tau_hmt = f_tau(V, V_bd_hmt, V_0_hmt)
V_bias
.
append
(
V
)
t_gates
.
append
(
t_gate
)
# Load files.
data
=
np
.
loadtxt
(
path
,
skiprows
=
0
)
# Create a PeakOTron Fit Object.
...
...
@@ -135,6 +135,7 @@ d_G = np.array(d_G)
G_prefit
=
np
.
array
(
G_prefit
)
d_G_prefit
=
np
.
array
(
d_G_prefit
)
V_bias
=
np
.
array
(
V_bias
)
t_gates
=
np
.
array
(
t_gates
)
with
h5py
.
File
(
f
"
{
folder
}
/
{
os
.
path
.
basename
(
folder
)
}
.h5
"
,
'
w
'
)
as
f
:
f
.
create_dataset
(
'
G
'
,
data
=
G
)
...
...
@@ -142,5 +143,6 @@ with h5py.File(f"{folder}/{os.path.basename(folder)}.h5", 'w') as f:
f
.
create_dataset
(
'
G_prefit
'
,
data
=
G_prefit
)
f
.
create_dataset
(
'
d_G_prefit
'
,
data
=
d_G_prefit
)
f
.
create_dataset
(
'
V_bias
'
,
data
=
V_bias
)
f
.
create_dataset
(
'
integral_length
'
,
data
=
t_gates
)
print
(
"
\033
[95m=======================================
\033
[0m
"
)
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