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
5e7b7ce3
Commit
5e7b7ce3
authored
4 years ago
by
Andrey Samartsev
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
e7828b55
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 @
5e7b7ce3
...
...
@@ -69,7 +69,7 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
ctrlDataFiles
[
quadrant
+
1
]
=
f
if
len
(
ctrlDataFiles
)
==
0
:
print
(
"
ERROR: no Control
Slow
Data found!
"
)
print
(
"
ERROR: no
Slow
Control Data found!
"
)
return
targetGainAll
,
encodedGainAll
,
operatingFreqAll
daq_format
=
None
...
...
@@ -84,7 +84,7 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
elif
'
/METADATA/deviceId
'
in
ctlrh5file
:
ctrlloc
=
ctlrh5file
[
'
/METADATA/deviceId
'
][
0
]
else
:
print
(
"
N
o Slow Control Data found in files!
"
)
print
(
"
ERROR: n
o Slow Control Data found in files!
"
)
return
targetGainAll
,
encodedGainAll
,
operatingFreqAll
ctrlloc
=
ctrlloc
.
decode
(
"
utf-8
"
)
...
...
@@ -132,7 +132,7 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
# 22 corresponds to 4.5 MHz, 44 to 2.25 MHz, etc.
operatingFreqs
[
quadrant
]
=
4.5
*
(
22.0
/
opFreq
)
else
:
print
(
f
"
no slow data for quadrant
{
quadrant
}
is found
"
)
print
(
f
"
ERROR:
no slow data for quadrant
{
quadrant
}
is found
"
)
for
varpair
in
[
(
targetGainAll
,
tGain
),
...
...
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