Skip to content
Snippets Groups Projects

Fix/da qoldformat corr

Merged Andrey Samartsev requested to merge fix/DAQoldformatCorr into master
4 unresolved threads
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -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")
Loading