Skip to content
Snippets Groups Projects
Commit e7828b55 authored by Andrey Samartsev's avatar Andrey Samartsev
Browse files

small fixes

parent 12254cc9
No related branches found
No related tags found
1 merge request!432Fix/da qoldformat corr
...@@ -93,18 +93,18 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern, ...@@ -93,18 +93,18 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
tGain = {} tGain = {}
encodedGain = {} encodedGain = {}
operatingFreqs = {} operatingFreqs = {}
for quadrant in slow_data_aggregators.keys(): for quadrant in range(1,5):
if quadrant in ctrlDataFiles.keys(): if quadrant in ctrlDataFiles.keys():
file = ctrlDataFiles[quadrant] file = ctrlDataFiles[quadrant]
with h5py.File(file) as h5file: 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: if not daq_format:
tGain[quadrant] = 0.0 # 0.0 is default value for TG tGain[quadrant] = 0.0 # 0.0 is default value for TG
if iramp_path in h5file: if iramp_path in h5file:
irampSettings = h5file[iramp_path][0] irampSettings = h5file[iramp_path][0]
else: else:
irampSettings = "Various irampSettings = "Various"
else: else:
epcConfig = h5file[f'/RUN/{ctrlloc}/FPGA/PPT_Q{quadrant}/epcRegisterFilePath/value'][0]\ epcConfig = h5file[f'/RUN/{ctrlloc}/FPGA/PPT_Q{quadrant}/epcRegisterFilePath/value'][0]\
.decode("utf-8") .decode("utf-8")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment