From e7828b558c961262c3c306ebe8ffee0e70e0740b Mon Sep 17 00:00:00 2001 From: Andrey Samartsev <andrey.samatrtsev@xfel.eu> Date: Thu, 25 Feb 2021 15:51:34 +0100 Subject: [PATCH] small fixes --- cal_tools/cal_tools/dssclib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cal_tools/cal_tools/dssclib.py b/cal_tools/cal_tools/dssclib.py index 60e6b90e1..ab3f9530d 100644 --- a/cal_tools/cal_tools/dssclib.py +++ b/cal_tools/cal_tools/dssclib.py @@ -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") -- GitLab