Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
e7828b55
Commit
e7828b55
authored
4 years ago
by
Andrey Samartsev
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
12254cc9
No related branches found
No related tags found
1 merge request
!432
Fix/da qoldformat corr
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cal_tools/cal_tools/dssclib.py
+3
-3
3 additions, 3 deletions
cal_tools/cal_tools/dssclib.py
with
3 additions
and
3 deletions
cal_tools/cal_tools/dssclib.py
+
3
−
3
View file @
e7828b55
...
...
@@ -93,18 +93,18 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
tGain
=
{}
encodedGain
=
{}
operatingFreqs
=
{}
for
quadrant
in
slow_data_aggregators
.
keys
(
):
for
quadrant
in
range
(
1
,
5
):
if
quadrant
in
ctrlDataFiles
.
keys
():
file
=
ctrlDataFiles
[
quadrant
]
with
h5py
.
File
(
file
)
as
h5file
:
iramp_path
=
f
'
/ RUN /
{
ctrlloc
}
/
FPGA
/
PPT_Q
{
quadrant
}
/
gain
/
irampFineTrm
/
value
iramp_path
=
f
"
/RUN/
{
ctrlloc
}
/
FPGA
/
PPT_Q
{
quadrant
}
/
gain
/
irampFineTrm
/
value
"
if
not
daq_format
:
tGain
[
quadrant
]
=
0.0
# 0.0 is default value for TG
if
iramp_path
in
h5file
:
irampSettings
=
h5file
[
iramp_path
][
0
]
else
:
irampSettings =
"
Various
irampSettings
=
"
Various
"
else
:
epcConfig
=
h5file
[
f
'
/RUN/
{
ctrlloc
}
/FPGA/PPT_Q
{
quadrant
}
/epcRegisterFilePath/value
'
][
0
]
\
.
decode
(
"
utf-8
"
)
...
...
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