diff --git a/cal_tools/cal_tools/dssclib.py b/cal_tools/cal_tools/dssclib.py index 60e6b90e1da87eedd51294f4f3fba610d0083c6b..ab3f9530d4c060534793963810eb952be6322784 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")