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

pep formatting

parent 2176dfac
No related branches found
No related tags found
1 merge request!432Fix/da qoldformat corr
......@@ -96,15 +96,15 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
for quadrant in slow_data_aggregators.keys():
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
with h5py.File(file) as h5file:
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")
......@@ -113,7 +113,7 @@ def get_dssc_ctrl_data(in_folder, slow_data_pattern,
print(f"EPC configuration: {epcConfig}")
targGain = _extr_gainparam_conffilename(epcConfig)
tGain[quadrant] = float(
targGain) if targGain is not None else 0.0
targGain) if targGain is not None else 0.0
irampSettings = h5file[iramp_path][0].decode("utf-8")
gainSettingsMap = {}
......
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