14 Creates dictionaries representing the mappings
15 for different systems onto the chamber name.
20 hv, lv, jtag, name, output_channel = line.split()
21 return int(hv),
int(lv),
int(jtag), name,
int(output_channel)
23 mdtcodes = resource_string(
"DCSCalculator2.subdetectors.data",
"mdt_codes.dat").
decode().strip().
split(
"\n")
26 lines = [line
for line
in [fix_line(raw_line)
for raw_line
in mdtcodes
if raw_line]
if line]
28 name_to_output =
make_multi_mapping((name, output_channel)
for hv, lv, jtag, name, output_channel
in lines)
29 hv_to_name =
make_multi_mapping((hv, name)
for hv, lv, jtag, name, output_channel
in lines)
30 lv_to_name =
make_multi_mapping((lv, name)
for hv, lv, jtag, name, output_channel
in lines)
31 jtag_to_name =
make_multi_mapping((jtag, name)
for hv, lv, jtag, name, output_channel
in lines)
32 name_to_name =
make_multi_mapping((name, name)
for hv, lv, jtag, name, output_channel
in lines)
34 return name_to_output, hv_to_name, lv_to_name, jtag_to_name, name_to_name